title: Response.Redirect() doesn't work
body: <p>I have Default.aspx page, which inherits from BasePage.cs, which inherits from System.Web.UI.Page. BasePage is where I check if the session has timed out. When the session has timed out and the user clicks on something, I need to redirect the user back to the "Main.aspx" page.</p>
  
  <p>Here is the code in my Basepage</p>
  
  <pre><code> override protected void OnInit(EventArgs e)
  {
    base.OnInit(e);
    if (Context.Session != null)
      {
          if (Session.IsNewSession)
          {
              string cookie = Request.Headers["Cookie"];
              if ((null != cookie) &amp;&amp; (cookie.IndexOf("ASP.NET_SessionId") &gt;= 0))
              {
                  HttpContext.Current.Response.Redirect("Main.aspx", true);
                  return;
              }
          }
      }
  }
  </code></pre>
  
  <p>HttpContext.Current.Response.Redirect("Main.aspx", true);</p>
  
  <p>I want the redirect to stop execution of BasePage and immediately jump out. The problem is, it doesn't. </p>
  
  <p>When I run in debug mode, it contines stepping through as though it didn't just redirect and leave.
  How can I safely redirect?</p>