At 01:19 PM 1/04/99 -0800, you wrote:
>Hi:
>I have question about how to prevent my html page being cached by browser
so user can't use back/forward button to view the page after they leave the
page. For example, my page1 will be a login page, page2 will be some
choice listing, page3 will be some confidential info page, and if user
leave page3 with/without logoff and go to some other pages or sites, the
next user can use back/forward key to see the previous user's confidential
info. How can I prevent this to happen? Any good idea on how to implement
this?
>
>Thanks in advance,
> Jackie
>
>___________________________________________________________________________
>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
>
>
well, if the page is generated by a servlet, you can use
setHeader("Expires","-1"), which instructs the browser not to cache the
page. If the page is static HTML, I don't know how to set the header, so
you'll have to look to an HTML guide.
Hope this helps
Hector
___________________________________________________________________________
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