Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to expire the page after it has been retrived by the user(JSP code

Status
Not open for further replies.

2277114

Programmer
Jun 6, 2001
1
PK
hello,i m trying the following code to expire the page as after open by the user. As cannot visit the page by the back button like if wants to visit the page the he has to loggin again.for example if user open a page and goto next page after that when he try to go back the page shouldn't open and he get the message of page expiration.
i m using following JSP code but its not working properly, the tools i m using are Apache version 1.3.1.7 and Jrun version 3.02 and explorer5.

<% responce.setDateHeader(&quot;Expire&quot;,0);
responce.setHeader(&quot;Pragma&quot;,&quot;no-chache&quot;);
if(request.getProtocol().equal(&quot;HTTP\1.1&quot;))
responce.setHeader(&quot;Chache-control&quot;,&quot;no-chache&quot;);
%>

as the above code does work in expolrer 4 and it works little bit in explorer 5 but still dosnt work properly.
it shows the values of previous page mostly and doesnt refresh at all.
 
Hi,

Perhaps you would like to try the method setMaxInactiveInterval(int) found in class HttpSession?

Hope this helps,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
hi

see the following thread :

thread695-88085 forum, &quot;Bad Cache Handling with IE5&quot;)

perhaps it'll help...
manu0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top