title: Clear session on Logout MVC 4
body: <p>I need to know how to clear session on Logout in <code>MVC 4</code>  <code>asp.net</code>
   I have tried almost every thing but all in vain.   </p>
  
  <pre><code>    [AllowAnonymous]
      public ActionResult SignOut()
      {
          Response.AddHeader("Cache-Control", "no-cache, no-store,must-revalidate");
          Response.AddHeader("Pragma", "no-cache");
          Response.AddHeader("Expires", "0");
          Session.Abandon();
  
          Session.Clear();
          Response.Cookies.Clear();
          Session.RemoveAll();
  
          Session["Login"] = null;
          return RedirectToAction("Index", "Login");
      }
  </code></pre>
  
  <blockquote>
    <p>Session.Clear(); <br />
         Session.Abandon();<br />  Clear cookies <br />  set session to Null on Logout etc<br /></p>
  </blockquote>
  
  <p>but when i click on Browser's back button . it redirect to the same account. 
  please help me , how would i clear session variable when i click on logout button.
  I tried each of the above one by one and then in group but same result.</p>