I am working on web application. I am facing a problem that when logout from my website i was redirected to my login page but when i click on back button of browser i was again able to access my web pages that should be visible after login. Please help me its very urgent
How to restrict the user to login by browser back button even after log out in
Collapse
X
-
Tags: None
-
I usually don't give out code this easily, but I'm in a good mood ;-)
Add the following code to the click-event of your logoff button.That should do the trick.Code:Response.Buffer = True Response.Expires = 0 Response.ExpiresAbsolute = DateTime.Now.AddDays(-1) Response.CacheControl = "no-cache"
Steven
Comment