I would solve it by adding a 1 minute refresh in a hidden frame in your page
to a action which just delivers next refresh header. As long as the user has
the page open, the session will never expire. After he closes the browser,
the session expires normally.

Regards
Leon

> -----Ursprüngliche Nachricht-----
> Von: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 6. April 2005 20:02
> An: 'Struts Users Mailing List'
> Betreff: 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]
> 
> 



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

Reply via email to