title: How to clear all the session variables when i am logging out in mvc4?
body: <p>I am new to Asp.Net Mvc4. I want to clear all the session variables when i am logging out. I am using this code. But it is not working.Please help me out to get it. Thanks in advance.</p>
  
  <p>My controller code:</p>
  
  <pre><code>public ActionResult Logout()
          {
              System.Web.Security.FormsAuthentication.SignOut();
              Session.Clear();
              Session.RemoveAll();
              return RedirectToAction("Index", "Login");
          }
  </code></pre>