Re: Ending session

2007-06-06 Thread Mansour
That's lot of idea. Thank you ever one. I will try them today, and I will post the results. Caine Lai wrote: Probably the easiest way to do this would be to have a very short session timeout period (5minutes?) set on the server. You could then have a JavaScript function that polls the server

Re: Ending session

2007-06-05 Thread Caine Lai
Probably the easiest way to do this would be to have a very short session timeout period (5minutes?) set on the server. You could then have a JavaScript function that polls the server every 5 minutes. Each ajax request made by the JavaScript will reset the session timer on the server. On 6/5/07

Re: Ending session

2007-06-05 Thread Oguz Kologlu
I think the way it is mostly done is by using push events from the server. Have a look at Mortbay Jetty servlet container if you are really interested, It's supposed to handle continuations/push events quite well. If you can no longer push server events out you could make the assumption the

Re: Ending session

2007-06-05 Thread Roger Varley
Roger Varley wrote: > I'm sure that I've read that it's possible, using Javascript, to > detect if a client closes the browser & if that's true, then you could > use an AJAX call to invalidate the session. This is possible, but you can't bet on it actually working. The user might have javascript

Re: Ending session

2007-06-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger, Roger Varley wrote: > I'm sure that I've read that it's possible, using Javascript, to > detect if a client closes the browser & if that's true, then you could > use an AJAX call to invalidate the session. This is possible, but you can't bet o

Re: Ending session

2007-06-05 Thread Roger Varley
2. if the user simply closes the browser, you have no option but to wait for the session to expire. Maybe all you really want is a shorter session timeout.; but I'm sure that I've read that it's possible, using Javascript, to detect if a client closes the browser & if that's true, then you co

Re: Ending session

2007-06-05 Thread Jeromy Evans
Mansour wrote: I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? 1. provide a logout action. In this action, get the ServletRequest and invalidate the session immediately; but 2. if the user simply closes the brows

Re: Ending session

2007-06-05 Thread Roger Varley
On 05/06/07, Mansour <[EMAIL PROTECTED]> wrote: I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? Implement an HttpSessionListener. The destroy() method will be invoked by the servlet container when the session ends.

RE: Ending session

2007-06-05 Thread Raghupathy, Gurumoorthy
/api/javax/servlet/http/HttpSes sionListener.html Regards Guru -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:41 To: 'Struts Users Mailing List' Subject: RE: Ending session The server has no way of knowing if the client closes their brows

RE: Ending session

2007-06-05 Thread Al Sutton
The server has no way of knowing if the client closes their browser. You'll just have to wait for the session to expire. -Original Message- From: Mansour [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:34 To: Struts Users Mailing List Subject: Ending session I am saving objects i

Ending session

2007-06-05 Thread Mansour
I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]