The servlet spec at HttpSession.getLastAccessedTime says:

"Actions that your application takes, such as getting or setting a value
associated with the session, do not affect the access time."

How then can I programmatically extend the session life passed the
inactive interval?

Would setting max interval to ever longer value as needed do the trick?

The following would be the scenario:

1. Get request (max interval is 5 minutes by default)
2. Start sending reply but keep track of how long the reply is being sent.
3. The reply is being sent for 4 minutes now so set the max interval to
10 minutes now.
4. The reply is being sent for 9 minutes now so set the max interval to
15 minutes now.
5. 3 minutes later the reply was finished so now 3 minutes remain before
the session times out (9+3=12 15-12=3)

Would that work?

Thanks for your help,
d.

--
David Mossakowski
Instinet Corporation



*******************************************************************
<<<Disclaimer>>>

This message is intended only for the use of the
Addressee and may contain information that is
PRIVILEGED and/or CONFIDENTIAL.

This email is intended only for the personal and
confidential use of the recipient(s) named above.

If the reader of this email is not an intended recipient,
you have received this email in error and any review,
dissemination, distribution or copying is strictly prohibited.

If you have received this email in error, please notify
the sender immediately by return mail and permanently
delete the copy you received.

Thank you.

*******************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Reply via email to