Problem With Back Button
-
Hi, In a web application, when user clicks log out button, I run Session.RemoveAll() and redirect his to home page. but after log out if it click back button of browser, he come back to previous page, that in load of it I checked the session, but the Load event don't fire (by clucking back button of browser). what should I do?
Best wishes
-
Hi, In a web application, when user clicks log out button, I run Session.RemoveAll() and redirect his to home page. but after log out if it click back button of browser, he come back to previous page, that in load of it I checked the session, but the Load event don't fire (by clucking back button of browser). what should I do?
Best wishes
Actully that page is coming from the cache. try to remove the cache using this code Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now); you can write this code on the master page load event........
Deepak Nigam