Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

logOut and disable browser back button

Status
Not open for further replies.

chas28

Programmer
Dec 24, 2007
2
US
I would like to be able to log out a user and prevent the back button being used to reaccess the membership files.
I have tried using

FormsAuthentication.SignOut()
Session.Abandon()
and

Response.Expires = -1.

but users can still use the back button to enter the account.
How do I prevent this from happening?
 
Hi,
Maybe something in the logout actions that sets a session variable ( no Session.Abandon then) which a Page Load action on the previous page can check for?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Turkbear - The problem with that is when a web-browser's back-button is pressed, the web-browser retrieve the webpage from cache (not contacting the server), so a session wouldn't work in this case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top