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
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
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
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
-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
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
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
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.
/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
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
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]
11 matches
Mail list logo