I have run into a really weird issue and I cannot reproduce 100% of the time. When calling LogOff (via HTTP Post) in the account controller I am redirected back to the home page and the user is not signed out. When this starts happening, the ONLY way I have
found to fix the problem is to delete the authentication cookie or start an in private session where the cookie is not present. Once the problem starts happening the number of calls to the underlying ASP.NET Identity Framework increases substantially per request
(Sometimes as much as 8 calls to ApplicationManager.FindById) before it even calls the controller. This problem occurs in both the latest Chrome & Firefox. I don’t know the steps to reproduce it.
I have tried to isolate the problem by changing the logoff landing page.
Here is what I have in Startup.Auth.cs
app.CreatePerOwinContext(ApplicationDbContext.Create);
...
Go to the complete details ...