On Mon, 10 Feb 2003, Victor Soares wrote:

> Date: Mon, 10 Feb 2003 11:28:12 -0800
> From: Victor Soares <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: How to listen for Session LastAccessedTime
>
> Hello,
> I've been searching through the Javadocs to figure out how to listen for a session's 
>LastAccessedTime but haven't been able to find anything. Seems like the 
>HttpSessionAttributeListener is not notified when a session's LastAccessedTime is 
>changed.
>
> Is there a way to listen for a session's LastAccessedTime?
>

There is no event listener that is fired when a session is accessed (i.e.
the session id cookie, or the URL-encoded path parameter, is included on
a request).

An easy way to detect this situation would be to write a Filter that was
mapped to all requests ("/*") and just noted whether a session id was
included or not.  The filter could fire off whatever sort of notification
that your application required.

> thanks,
> - vic

Craig

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

Reply via email to