Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

force refresh

843836Nov 15 2004 — edited Aug 1 2005
hi,
i'm using tomcat 5.0.27 and i.e 6.
how can i force the page reload? actually the browser charge the old page (i.e. if a user see a page and later push logout another user in the same browser session will see the same page even if he shouldn't see it becouse didn't log in!)
i have tried with
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>

but i obtain a server error.
please help me!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2005
Added on Nov 15 2004
6 comments
163 views