tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain Gaeremynck <ga...@interstructure.ca>
Subject Re: Prevent user from retrieving previous page in jsp/servlet
Date Mon, 06 Dec 2004 17:26:06 GMT
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
>mailto:Gareth.Segree@gleanerjm.com <mailto:Gareth.Segree@gleanerjm.com> 
>Technical Support Analyst
>The Gleaner Company Ltd.
>7 North Street
>Kingston
>Tel: 922-3400
>
>
>  
>

-- 
Alain Gaeremynck
CTO Le Groupe Interstructure
(514) 374-1110
(514) 825-7810 cell
weblog: http://www.sanssucre.ca


---------------------------------------------------------------------
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