I found a solution to my problem, with side effects:
If I put "<META HTTP-EQUIV=expires CONTENT=0>" in the HTML of
the login page, and a user does go back in their browser history,
the page will be expired and attempt to reload. The servlet will
recognize that they are logged on and display the page requested.
So, to a user going back would display the same page they were on.
It just appears to a user as though the page was in their history
twice. This looks like how it is done on Java Developer Connection.
Of course, if anyone has any ways around this, I'd love to hear
them.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin
Gross
Sent: Monday, May 24, 1999 11:19 AM
To: [EMAIL PROTECTED]
Subject: location.replace() in doPost()?
I've asked this before, but received no response (or I missed
the response -- this is a busy mailing list!):
I can successfully do a Javascript "location.replace(...)" to
a servlet's "doGet" method so that the requesting page is not
saved in the browser history.
My problem is that I'd like to do the same thing in a "doPost"
method. The page that "posts" the form will always be in the
browser history. Any way to avoid this?
My form is an authentication prompt -- how common, eh?
Once the user has logged in, I don't want them to do a "Back"
from the browser and see the login prompt again.
___________________________________________________________________________
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
___________________________________________________________________________
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