我的LogOff
操作仅适用于第一个会话 - 来自同一台计算机上其他浏览器的其他会话无法注销。
此外,LogOff
当请求已被服务器缓存时,不会调用该操作。
这是我的LogOff
行动:
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult LogOff()
{
MvcAuthentication.Models.ConfirmList.Remove();
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
return RedirectToAction("Index", "Home");
}
什么会阻止其他浏览器会话注销?