I\'ve recently put Live a web application which was built using MVC 4 and Entity Framework 5. The MVC application uses
I had the same problem when
I found this was happening only in IE and I fixed it by doing a couple of things
On the login page I added a check to see if the user is already authenticated, and if so logged out the user, and then redirected to the Login page again.
[AllowAnonymous]
[OutputCache(NoStore=true, Location=System.Web.UI.OutputCacheLocation.None)]
public ActionResult Login)
{
if (HttpContext.Request.IsAuthenticated)
{
WebSecurity.Logout();
Session.Abandon();
return RedirectToAction("Login");
}
return View();
}