Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Can you ever update a sessions access time?

Balunas, Jay

2004-05-11


All,

I need to update a session access time (as if a request had just occurred).

I have a application that sends a "keep-a-live" message to tomcat (with a sessionID). I wrote a session tracker to retrieve the already created session (via an earlier web-page request)

When I our servlet receives the keep-a-live message it retrieves the session and must mark it as having been accessed.

I have looked through the tomcat source and what I really need to do is to access the "ServerSession.touch(long)" method. This is protected within "HttpSessionFacade" class.

Is there any other way to do this?

Thanks,
Jay

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.