Prevent Back option in browser after logout from the application
asp.net, browser
Solution
Thank You for all your replies.
Code:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
i have used this code in page load event. Its working fine.
Problem
I am working on a ASP.NET application. I want to prevent the user from viewing the previous page using the back button in the browser after logging out from the application.