A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
How to disable the back button?
Joined: Aug 04, 2003
Nov 23, 2005 12:20:00
I have a
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?
[ November 23, 2005: Message edited by: Darrin Smith ]
I agree. Here's the link:
subject: How to disable the back button?
making pages sensetive in struts
Re: Navigation Restriction
No Cache in IE
Log out Functionality for my Web Application
I need to cache a page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014