我正在使用ASP的应用程序中开发注销功能.NET身份登录.我可以成功登录,但当我注销并再次try 登录时,我会收到以下消息:
The provided anti-forgery token was meant for a different claims-based user than the current user.
这是我的注销代码:
public ActionResult Logout()
{
SignInManager.Logout();
return View("Index");
}
**SignInManager.cs**
public void Logout()
{
AuthenticationManager.SignOut();
}
用户按下注销按钮后,将进入登录屏幕.网址上仍然写着"http://localhost:8544/Login/Logout".由于我们在登录屏幕上,也许它应该只说"http://localhost:8544/Login".