I have HttpContext.Current.Session["CurrentUser"] = user;
somewhere in my code and in the logout I have this
public ActionResult LogOff()
{
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
return RedirectToAction("Index", "Home");
}
I just want to make sure that HttpContext.Current.Session
is also destoyed when I logoff. If not then how do it destroy it?