【发布时间】:2018-01-11 13:57:47
【问题描述】:
我有 Web 应用程序并制作了登录模块,现在当我注销并单击浏览器中的后退按钮时,我会看到只有在登录后才能访问的视图。 我怎样才能防止这种情况发生?
我使用身份进行授权。在 IE 中它可以工作,但在 Firefox 和 Chrome 中不工作。 注销代码:
[HttpPost]
[ValidateAntiForgeryToken]
public virtual ActionResult SignOut()
{
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
return RedirectToAction(MVC.Login.Login.SignIn());
}
【问题讨论】:
-
这个问题的答案不适用于 Firefox 和 chrome,但适用于 IE。
标签: asp.net asp.net-mvc asp.net-identity