> I am using jrun and would like to be able to warn the user that the
session
> is about to expire and gracefully lead them to the start page once it has
> expired.  Has anyone implemented something similar or can someone lead me
to
> where I might find a solution.
> Joe.
>
You cannot warn the user, you can only react when they send another request.

You can do this in many ways

The process runs basically like this. Client sends request for a page, the
jsp page or the servlet being
requested notices that the session generated isNew() and does this..
resp.sendRedirect(absoluteURLAsString);
before any other output is sent down the response output stream. You set the
redirect URL to whatever
your login page is.

Et Voila as they say in English

Andy Bailey

___________________________________________________________________________
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