Quantcast
Viewing all articles
Browse latest Browse all 9386

Cache not clearing after logout

I'm logging out the user with:

            HttpContext.Authentication.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
            ViewBag.Result = "You have succesfully logged out.";
            return View("~/Views/Account/Logout.cshtml");

However, when I hit the back button, it takes me to a page which they shouldn't have access to anymore.

I've seen solutions for MVC 5 (Session.Abandon), but nothing with Core.

Any ideas?

Thanks!


Viewing all articles
Browse latest Browse all 9386

Trending Articles