tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject [OT] RE: Prevent user from retrieving previous page in jsp/servlet
Date Mon, 06 Dec 2004 17:23:17 GMT
hm, i can't seem to get them working either in IE, I think the last time I had this working
was after a form post, not just navigation through pages. Sorry. A google search may be more
appropriate.

Cheers, Allistair.

> -----Original Message-----
> From: Allistair Crossley 
> Sent: 06 December 2004 17:11
> To: Tomcat Users List; Karl Ostendorf
> Subject: RE: Prevent user from retrieving previous page in jsp/servlet
> 
> 
> response.setDateHeader("Last-Modified", System.currentTimeMillis/());
>                                                                 ^^^
> is invalid .. 
> 
> > -----Original Message-----
> > From: Karl Ostendorf [mailto:chicagokarl@gmail.com]
> > Sent: 06 December 2004 17:03
> > To: Tomcat Users List
> > Subject: Re: Prevent user from retrieving previous page in 
> jsp/servlet
> > 
> > 
> > This is an interesting question.  I have created a 
> ServletFilter that
> > appends the following headers to all responses:
> > 
> > response.setHeader("Cache-Control", "no-cache");
> > response.setHeader("Pragma", "no-cache");
> > response.setDateHeader("Last-Modified", 
> System.currentTimeMillis/());
> > response.setDateHeader("Expires", 0);
> > 
> > This doesn't work.  Firefox will serve the previous page out 
> > of it's cache.
> > 
> > I'd be interested to know if anyone else has been able to 
> > make this work.
> > 
> > Karl
> > 
> > 
> > On Mon, 6 Dec 2004 08:54:29 -0500, Segree, Gareth
> > <gareth.segree@gleanerjm.com> wrote:
> > > I want to invalidate previous page if the back button is pressed.
> > > The user should not get the previous page if they return to 
> > it pressed.
> > > 
> > > 
> > > Gareth Segree
> > > mailto:Gareth.Segree@gleanerjm.com 
> <mailto:Gareth.Segree@gleanerjm.com>
> > Technical Support Analyst
> > The Gleaner Company Ltd.
> > 7 North Street
> > Kingston
> > Tel: 922-3400
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
> -------------------------------------------------------
> QAS Ltd.
> Developers of QuickAddress Software
> <a href="http://www.qas.com">www.qas.com</a>
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> -------------------------------------------------------
> </FONT>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message