File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Preventing to go to the previous screen by clicking on browser back button
Joined: Sep 17, 2008
Feb 04, 2010 06:59:56
How do I prevent a user from clicking the back button and going back to the previous screen once he "Sign Out" in HTML(Without disable the back button of the browser)?
I tried to do the same by writing the following code inside <head></head> tags in html.
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Cache-Control" content="no-cache" />
But it is not working in any browser.
So please help out regarding the same.
Thanks in Advance
Thanks & Regards
Joined: Nov 08, 2001
Feb 04, 2010 08:01:08
Have you tried the
It has been asked a bunch of times in the past.
I agree. Here's the link:
subject: Preventing to go to the previous screen by clicking on browser back button
How to ensure a page not cached.
enable Browser Back Button
making pages sensetive in struts
I need to cache a page
Help needed in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015