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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -