Most web applications with authentication disable caching so after you logout, you can't click the back button to try and view pages that you shouldn't be accessing.
In ASP.NET, you can use the following code to disable caching Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)) Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetNoStore()
There are some other snippets you could try out too. Here's one:
"Disabling ASP.NET Caching"
1 Comment -
Thank you man,
it's working
March 7, 2008 at 12:30 AM