If you have a request object available you can do the following:
HttpSession session = request.getSession(false);
if (session == null){
//redirect to login page..
}
else {
//proceed ..
}
Geeta
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?
>
> ___________________________________________________________________________
> 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