I have res.setHeader("Pragma", "no-cache");
res.setHeader("Cache-Control", "no-store");
res.setHeader("Expires", "Fri, 11 Apr 1997 17:46:08
GMT");
I expect that the user on clicking the back button should not be able to
view the page viewed earlier. Using the above statements in both my doGet
and doPost methods, when I click on the back button I get a message that
says "This document resulted from a POST operation and has expired from the
cache. If you wish you can repost the form data to recreate the document by
pressing the reload button". The user will still be able to view the page in
the history by clicking reload button. I do not want this to happen. The
user should not be able to view the page accessed prior to the page that is
being viewed right now.
Again if the user resizes the page they get the same result, "This document
resulted from a POST operation and has expired from the cache. If you wish
you can repost the form data to recreate the document by pressing the reload
button". What is happening here is that resizing the page causes it to
access the server again. I do not want this to happen. Instead I would
prefer to use the data from the source and display the page.
Can any one share their thoughts about this.
I greatly appreciate your response.
Thanks
Vallikun
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html