title: Redirect to another view (login page) immediately when session expires in MVC
body: <p>In my MVC application a user can login . If session is expired i want to redirect immediately to login page . I tried this</p>
  
  <pre><code>  protected void Session_End(Object sender, EventArgs e)
      {
  
            Response.Redirect("/Home/Index");
      }
  </code></pre>
  
  <p>But its not redirecting the page..I can capture session end.. I can see that by putting a break point there. I know its difficult to redirect the page without request from client. Is there any thing i can do??
  and i tried this .. in head section of master page i put following code</p>
  
  <pre><code>&lt;meta http-equiv="refresh" content="0015; URL=&lt;%= Url.Action("Index", "Home") %&gt;"/&gt;
  </code></pre>
  
  <p>the code redirected the page after 15 second. But i only want to redirect if the user is not accessed(idle) the page .</p>