ASP.NET MVC 5 LogOff Issue that only works for one session -
my logoff
action works first session - other sessions other browsers on same computer can not log out.
also, logoff
action not called when request has been cached server.
this logoff
action:
[httppost] [validateantiforgerytoken] public actionresult logoff() { mvcauthentication.models.confirmlist.remove(); authenticationmanager.signout(defaultauthenticationtypes.applicationcookie); return redirecttoaction("index", "home"); }
what preventing other browser session logging off?
[outputcacheattribute(varybyparam = "*", duration = 0, nostore = true)] public actionresult logout() { session.removeall(); formsauthentication.signout(); return redirecttoaction("index","home"); }
try this
Comments
Post a Comment