Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Cache not clearing after logout

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>