title: Application variables get lost after post-back
body: <p>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. </p>
  
  <p>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:</p>
  
  <pre><code>&lt;sessionState cookieless="UseCookies" mode="StateServer" &gt;&lt;/sessionState&gt;
  </code></pre>
  
  <p>However, I don't know if there exists any similar settings for Application State.</p>
  
  <p>Please kindly advise.</p>
  
  <p>Man Thanks!!!</p>
  
  <p>William</p>
  
  <p>-- UPDATE--</p>
  
  <p>I'm using Visual Studio 2008, and the application is being tested on the Visual Studio ASP.Net Testing Server.</p>