Re: advice on auto logout servlet

2005-11-16 Thread Jon Wingfield
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:

Re: advice on auto logout servlet

2005-11-16 Thread Frank W. Zammetti
You can do this strictly client-side, if requiring Javascript isn't a problem (which of course an AJAX-based solution does anyway). Just start a timer from the onLoad event on each page. When 20 minutes has elapsed, you can either pop an alert which is followed by a redirect to some

RE: advice on auto logout servlet

2005-11-15 Thread Peter Crowther
From: Mark [mailto:[EMAIL PROTECTED] So there is no way to provide this functionality using just servlets :( You could sort-of hack something together using meta-refresh directives on the pages so that the browser knew to refresh the page just as the server timed out the session, but you

Re: advice on auto logout servlet

2005-11-15 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I would suggest that you do this by using somethinglike JSON or AJAX. See jasonspec: http://www.crockford.com/JSON/index.html You could make the client query your server, in some interval and check the session state. hope it helps - -reynir

Re: advice on auto logout servlet

2005-11-15 Thread Mario Ivankovits
Hi Mark, Is there any way to allow servlets to auto-logout a user when the timeout has been reached. We solved the problem slightly different. We use a rather small timeout for the session (say 10 minutes) and put a small iframe (nearly hidden, just changing colors) on the page where we use

advice on auto logout servlet

2005-11-14 Thread Mark
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?

Re: advice on auto logout servlet

2005-11-14 Thread Darryl L. Miles
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