title: Redirect to login page after session timeout
body: <p>I have found some similar questions but none gave me what I really need.</p>
  
  <p>Here is the thing, I have added this to my <code>web.config</code> to handle user session expiration:</p>
  
  <pre><code>&lt;sessionState mode="InProc" timeout="1" /&gt;
  </code></pre>
  
  <p>After 1 minute, the <code>Session_End</code> event from <code>Global.asax</code> is raised:</p>
  
  <pre><code>Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
      Response.Redirect("Login.aspx")
  End Sub
  </code></pre>
  
  <p>This doesn't work, because:</p>
  
  <pre><code>Response is not available in this context.
  </code></pre>
  
  <p>(By the way, <a href="https://stackoverflow.com/questions/6264421/how-to-redirect-to-home-page-after-session-timeout/6264446#6264446">this question</a> got an anwswer telling that this is ok and it got upvotes).</p>
  
  <p>I don't want nothing fancy. I just want a simple way to redirect the user to the login page when the session time expires. That's all.</p>
  
  <p>Thank you.</p>