Robert Nicholson wrote:
>
> How do you know when a session expires?
>
> I mean how do you typically trap after an attempt to access a page
> that the session has expired and ask the user to re-login?
Here's one way:
Session session = request.getSession(false);
if (session == null) {
//redirect to login
}
___________________________________________________________________________
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