Re: After gmail logs out, cannot go back through browser back button
- From: "George" <noemail@xxxxxxxxxxx>
- Date: Sun, 18 Jan 2009 23:27:16 -0500
Try to add following headers to your page
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Then when you click back button browser will request the page again and it's up to your code to check if user is not logged in and redirect to login page.
George.
"Author" <gnewsgroup@xxxxxxxxx> wrote in message news:bd85651d-dff3-474f-95d1-785bc818c34c@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
After we log out gmail, if we then click on the back button of our
browser, we cannot go back to our inbox. I've tried both Firefox and
IE, both work nicely like this. How did they achieve this?
In my asp.net web application using forms authentication, one can
still go back through the browser back button after one logs out my
application, although, clicking on anything will still kick the user
out.
How can I also prevent people from going back through the browser back
button after one has logged out, just like gmail?
Thanks a lot.
.
- Follow-Ups:
- References:
- Prev by Date: Re: IT Outsourcing Partner/Offshore Projects
- Next by Date: RE: Double clicking a web page button
- Previous by thread: Re: After gmail logs out, cannot go back through browser back button
- Next by thread: Re: After gmail logs out, cannot go back through browser back button
- Index(es):
Relevant Pages
|