tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: How to listen for Session LastAccessedTime
Date Mon, 10 Feb 2003 20:27:38 GMT


On Mon, 10 Feb 2003, Victor Soares wrote:

> Date: Mon, 10 Feb 2003 11:28:12 -0800
> From: Victor Soares <Victor@ci.tigard.or.us>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message