title: ASP.NET SessionState TimeOut not working
body: <p>I want my web page to close when SessionState timeout occures. This is my code in my web config:</p>
  
  <pre><code>&lt;system.web&gt;
  &lt;sessionState timeout="1" mode="InProc"/&gt;
  &lt;/system.web&gt;
  </code></pre>
  
  <p>I set to 1 minute for testing purposes. The following is my Global.asax code:</p>
  
  <pre><code>protected void Session_End(object sender, EventArgs e)
  {
      Response.Redirect("~/LogOut.aspx");
  }
  </code></pre>
  
  <p>I put a label on one of the pages in order to check the session timeout, this is the code in the Page_Load event:</p>
  
  <pre><code>lblSession.Text = "SESSION TIME: " + Session.Timeout.ToString();
  </code></pre>
  
  <p>When I enter the site and come to this page the label shows SESSION TIME: 1, but after 1 minute I don't get redirected to the LogOut page and the present page is still fully active and working, apparently meaning that the session has not been terminated. 
  I am working in Visual Studio 2008 thru the development server so suggestions I've seen relating to IIS settings don't seem to be relevant at this stage.
  Please help!</p>