Thanks for the reply,

        The problem is that just setting, getting, or removing an attribute from the 
session will not update the access time.  This is what I was originally going to do, 
but after looking at the tomcat source this is not the case.

        I would prefer not to circumvent any tomcat or spec implementation.  I am just 
wondering if there is any other way to do this?

        Our need for this is that we have a java application that is launched remotely 
by a control web-page.  As long as the remove application is active we do not want to 
the session that launched it to die.  Unfortunately these were the requirements given 
to me, I just need to see if it is possible.

        Thanks again,
        Jay

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 10:12 AM
To: Tomcat Users List
Subject: RE: Can you ever update a sessions access time?



Hi,
Why are you doing this at all?  Any time you try to circumvent the Servlet 
Specification this way, you'll get burned in the long run.

More specifically, any solution you come up with here will be specific not only to 
tomcat, but to this tomcat version, as the fa�ade or its implementation may change 
with future releases.

A neater way to do this if you have to, is to get the session, set and then remove an 
attribute in it.  That'll update the access time.


Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Balunas, Jay [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 11, 2004 9:29 AM
>To: [EMAIL PROTECTED]
>Subject: Can you ever update a sessions access time?
>
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
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