How to solve back button problem after logout
Are you searching logout problem solving based article? We can use this article for guideline on How to solve back button problem after logout. I also provides code snippet for back button problems after logout .
Description
We sometime face problem of back button that after logout then if we click back button then we able access those pages those already visited and that page always require login Session so if click on button go to login page.
Hereunder will give the code even if you click back button after logout you will remain in same page after you click back button.
If you click logout button go to login page and then click back button you will be same login page if you use this code.Use this code onclick of logout button.
Session.clear();//clear session
Session.Abandon();//Abandon session
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Response.Redirect("Logout.aspx");
this code is not working fully