title: How to Redirect on Session End
body: <p>I am trying to redirect user to another page when session ends.</p>
  
  <p>This code will result "Object reference not set to an instance of an object." exception</p>
  
  <pre><code>void Session_End(Object sender, EventArgs E)
  {
      HttpContext.Current.Response.Redirect("/");
  }
  </code></pre>
  
  <p>any idea how to do it ?</p>