title: Redirect to specific page after session expires (MVC4)
body: <p>C# MVC4 project: I want to redirect to a specific page when the session expires.</p>
  
  <p>After some research, I added the following code to the <code>Global.asax</code> in my project:</p>
  
  <pre><code>protected void Session_End(object sender, EventArgs e)
  {
       Response.Redirect("Home/Index");
  }
  </code></pre>
  
  <p>When the session expires, it throws an exception at the line <code>Response.Redirect("Home/Index");</code> saying <code>The response is not available in this context</code></p>
  
  <p>What's wrong here?</p>