Hi,
I use ASP MVC Net Core 3.1, I am expecting to disable the browser back button after the user logged out, my Logout code is below, it goes there but the user's back button still functioning, how to disable it?
Anybody can help me, please?Code:[HttpGet] public async Task<IActionResult> Logout() { HttpContext.Session.Clear(); await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); return RedirectToAction("Login", "User"); }
Stay safe and keep healthy