File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes How to disable the back button? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to disable the back button?" Watch "How to disable the back button?" New topic
Author

How to disable the back button?

Darrin Smith
Ranch Hand

Joined: Aug 04, 2003
Posts: 276
I have a JSF app where I want to allow the cache to function until the user clicks logoff. Once they do that, I don't want them to be able to use their back button to see the previous page.

In other words, before they press the logoff button I need the page to have this:

<meta content="no-cache" http-equiv="Cache-Control"/>
<meta content="no-cache" http-equiv="Pragma"/>

And after they press the logoff button make it look like this:

<meta content="no-cache" http-equiv="Pragma" >
<meta content="now" http-equiv=Expires>

How can that (or something like it) be done?

THANKS!
[ November 23, 2005: Message edited by: Darrin Smith ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to disable the back button?
 
Similar Threads
I need to cache a page
Re: Navigation Restriction
making pages sensetive in struts
No Cache in IE
Log out Functionality for my Web Application