If you are using a Servlet 2.3 container, J2EE provides a
HttpSessionListener class

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession
Listener.html

But it is only for listening; not altering the event's state. If you are
using Tomcat, perhaps you could write some internal API that lets you do
this, but that would be a very vendor specific solution (which is OK if
that's what fits the bill).

Thanks,
Paul

-----Original Message-----
From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 2:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Session Idle


Is it possible to create a listener for the session timeout event? This
listener would check to see if there is an operation in progress. If there
is, reset the timeout counter. If not, let the session expire.

Wiebe

-----Original Message-----
From: Justin Morgan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 10:20 AM
To: Struts Users Mailing List
Subject: RE: Session Idle

I think Eain is saying that he has some operations that take a long
time, and he wants to suspend the timeout counter during those
operations.

So suppose the timeout in web.xml is 5 minutes.  One particular
operation takes 10 minutes to complete.  Do not expire session.

However, if the user is idle when there is NOT a long process running,
expire after 5 minutes.

Is that what you meant, Eain?

-Justin



-----Original Message-----
From: Fogleson, Allen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 8:57 PM
To: Struts Users Mailing List
Subject: RE: Session Idle

That is exactly how the session timeout works. If the user is idle (i.e
has not submitted a request in X time) then it is timed out (assuming X
is the timeout) otherwise a request acts sort of as a "renew this
session for X more minutes"

Al


-----Original Message-----
From: Eain Mat [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 7:32 PM
To: Struts Users Mailing List
Subject: Re: Session Idle

if i invalidate the session, everything will be destory in the session.
I still want the session to keep alive when user is in the middle of
their processing operation even the session-timeout is passed. I only
want to timeout their session, if they are not doing anything.
 
 
Eain mat

Martin Gainty <[EMAIL PROTECTED]> wrote:
--web.xml contents--


5 


then trap on the invalidate method for your HttpSession object
Makes sense???
Martin-
----- Original Message -----
From: "Eain Mat" 
To: 
Sent: Tuesday, April 05, 2005 7:44 PM
Subject: Session Idle


> What is the simplest way to track the session idle? We cannot use
session-timeout in web.xml because there may be leftover operation that
is
needed to process.
>
> Eain Mat
>

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


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





------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
------------------------------------------------------------------------------

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

Reply via email to