Reputation:
I want that after Logging Out any user should not be able to go to the Back Page. How can i do that?
Upvotes: 1
Views: 2720
Reputation: 48088
Clear the cache instead, it's more reliable.
Add these to your header section of the page :
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
And add this to your page load :
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Upvotes: 2
Reputation: 706
AFAIK, you can not disable back button of web browser.
Add the following
"if user is logged in"
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>
Upvotes: 0
Reputation: 5600
Disabling the back button is not possible, perfectly. So you can:
Upvotes: 0
Reputation: 2802
You could try setting no-cache on the pages viewed by authenticated users, that should requier the users browser to reload the page from the server.
Upvotes: 0