trapping the session timeouts in the browser.

Hi I have a web application that sets timeouts on httpsessions. I need to trap the session timeout and bring a popup window to warn the user and continue to work if user wants to continue. How can I achieve this ?Thanks
[240 byte] By [sjavausera] at [2007-10-3 0:20:01]
# 1
Use a JavaScript timer to pop-up the window. Then the JavaScript can also do a request to refresh the session. Set the timer on the JavaScript to be slightly less than the session time out period on the server. You can find examples of the JavaScript timer on the JavaScript sites.
tolmanka at 2007-7-14 17:11:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
You can use Session listener to trap the session time out http://www.google.com/search?sourceid=gmail&q=Session%20Listener
Karthikeyan_Vaithilingama at 2007-7-14 17:11:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

That works only on the server side. I need to trap it in the browser, for server there is no way to contact the client after trapping the session timeout.

> You can use Session listener to trap the session time

> out

>

> http://www.google.com/search?sourceid=gmail&q=Session%

> 20Listener

sjavausera at 2007-7-14 17:11:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...