You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Klotz Jr, Dennis" <DK...@empirix.com> on 2006/02/18 20:09:30 UTC

Help with detecting session timeout

Is there an easy way to detect that a session has timed out from within
an applet?

Regards,

-Dennis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Help with detecting session timeout

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
 From an applet?  There probably is no easy answer... any solution would 
involve either polling the server from the servlet, or pushing the 
status out to the servlet... the later should be doable from a 
SessionListener... record the remote IP when the session is created, and 
send a ping to it when the session expires.  The problem with that 
though is when NAT and other address translation techniques get 
involved, there's a good chance it won't work.  That's why polling is 
the more usual solution in situations like this.

Frank

Klotz Jr, Dennis wrote:
> Is there an easy way to detect that a session has timed out from within
> an applet?
> 
> Regards,
> 
> -Dennis
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> .
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org