Disable Browser Back and Forward Button after logout
With the use of
following code you can restrict user to go back or forward after Logout. Just write this code on your masterpage load
event
Response.AppendHeader("Cache-Control",
"no-store")
You can also Remove browser Cache Memory with
the use of following code
//code for no
cache in browser
Response.ExpiresAbsolute=DateTime.Now.AddDays(-1d);
Response.Expires =-1500;
Response.CacheControl = "no-cache";
You can only use
Response.CacheControl = "no-cache";
But it is a good prectice to expire all cache.