My ASP.Net application has a Server Control developed by us which needs to store some keys in the Application level (i.e. across users and sessions) for future use. However, I found that the count neither of Page.Application and HttpContext.Current.Application become zero after post-back or page-refresh.
Actually I've been facing such problem in case of Session, but I finally solve the Session persistence problem by changing the SessionState configuration the web.config:
<sessionState cookieless="UseCookies" mode="StateServer" ></sessionState>
However, I don't know if there exists any similar settings for Application State.
Please kindly advise.
Man Thanks!!!
William
-- UPDATE--
I'm using Visual Studio 2008, and the application is being tested on the Visual Studio ASP.Net Testing Server.