tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Qin <>
Subject RE: Prevent user from retrieving previous page in jsp/servlet
Date Mon, 06 Dec 2004 17:28:58 GMT
There were a lot of posts rearding this Back issue in struts-user mailing

-----Original Message-----
From: Alain Gaeremynck [] 
Sent: December 6, 2004 12:26 PM
To: Tomcat Users List
Subject: Re: Prevent user from retrieving previous page in jsp/servlet

I would suggest doing it client side with javascript.  use 
location.replace(url) which will in effect replace the url in the 
history.  so the back button will take you 2 step back.  The only other 
way that i know of to do this is to clear the cache as offered in the 
other answer thread and keep track of the user's activity in his session

Segree, Gareth 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
> <>
>Technical Support Analyst
>The Gleaner Company Ltd.
>7 North Street
>Tel: 922-3400

Alain Gaeremynck
CTO Le Groupe Interstructure
(514) 374-1110
(514) 825-7810 cell

To unsubscribe, e-mail:
For additional commands, e-mail:


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message