Try using Http-session tracking with sessionIDs.

     If you use those then each time a user logs in it starts a new
     "session" that you can set to expire after a certain time period or
     even a certain time period of inactivity.

     Then write test.htm in servlet form and at the top of the servlet
     check to see if the current sessionID is valid or if it has expired.

     If it isn't valid then don't let them see the page...redirect them
     again...

     Jaman


______________________________ Reply Separator _________________________________
Subject: password protect html
Author:  alexk ([EMAIL PROTECTED]) at wich-unix-mime
Date:    4/21/99 3:11 PM


Hello everyone

Maybe someone will be able to help me. I have a servlet which asks for a
user name and password and then redirects the person to the proper page.
My question is how do I solve the bookmarking problem. If a person
bookmarks test.htm, then he is never asked for a password. It only asks
for a password if a person goes through login.htm. So how do I solve this
problem. Any ideas?

___________________________________________________________________________
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

Reply via email to