tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Wingfield <>
Subject Re: advice on auto logout servlet
Date Wed, 16 Nov 2005 16:33:24 GMT
I did an AJAX version of this a couple of months ago.
The slight gotcha is that the AJAX request prolongs the life of the 
session (you can't, it seems, override the cookie for AJAX requests) so 
the interval has to be slightly longer than the expiry time for the session.

Reynir Hubner wrote:
> Hash: SHA1
> Hi,
> I would suggest that you do this by using somethinglike JSON or AJAX.
> See jasonspec:
> You could make the client query your server, in some interval and check
> the session state.
> hope it helps
> - -reynir
> Mark wrote:
>>Is there any way to allow servlets to auto-logout a user when the timeout
>>has been reached. Right now, I have tomcat configured for a 20 minute
>>session timeout. When the session times out, the user gets no notification
>>of this event. Is there any way to show the user that they have logged out?
>>Thank you.
> Version: GnuPG v1.2.5 (MingW32)
> Comment: Using GnuPG with Thunderbird -
> iD8DBQFDeeqn19KgIQihNwgRAqT8AJ9ijf9kZZlldgjRTcAEtua+89enKQCgnqjm
> iuCZACbq4A/JkmtB5yiIc8M=
> =HSCq
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message