これはstackoverflowでよくある質問です。私はすべて同じ質問をしましたが、正しい答えを見つけることができません。これは私のログアウトコントローラーのアクション結果です
[Authorize]
public ActionResult LogOut(User filterContext)
{
Session.Clear();
Session.Abandon();
Session.RemoveAll();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1));
Response.Cache.SetNoStore();
FormsAuthentication.SignOut();
return RedirectToAction("Home", true);
}
それは私にはうまくいきませんでした。私も追加しようとしました-
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
これらのどれも私の問題を解決しませんでした。