6 Şubat 2009 Cuma

Browser back button problem after logout

Just one line of code to solve the problem with the back button of the browser, when you click logout. No javascript needed!

Just write

Response.Cache.SetNoStore();

to the Masterpage's Page_Init() function.

(Assuming that in the click function of the logout button, you have written Session.Abandon() and Response.Redirect(login page) )

And that's it!

If useful please rate: