Seems this is not supported by many containers yet(J2EE 1.4). You could use
a filter to check for session expiry but what if it expires after it passes
the filter. Then each JSP should have a check in the beginning.

Mohan

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of Mick
Sent: Sunday, December 07, 2003 5:12 PM
To: [EMAIL PROTECTED]
Subject: Re: How to detect that session has expired ?


On Sun, 07 Dec 2003 12:39:46 +0530, Baljinder Singh wrote:
> How can I detect that session has expired and so throw the user out of
> system after showing him a message that "Your session has expired. Please
> login again."


javax.servlet.http.HttpSessionListener

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionListener
.html
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets4.html

You can listen to when the session is about to be destroyed.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to