If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The session expires after a certain amount of inactivity. So you could either write some JavaScript to redirect the page to a logout page, or a META refresh that does the same. You could even use a combination of both. Use JS to pop up a message 5 minutes before the timeout, then use the META refresh to redirect to the logout page.

Right.. make sure you make the popup window a browser popup.. I don't think the browser will redirect if you use a javascript alert() message box and it is still active when the page needs to be redirected.

Given the "memory-less" nature of the HTML protocol, the way I'd probably try to approach the problem is by sending the user a javascript which sets a timer and then reacts to it. So the user's computer is the one that actually generates the warning that the session is about to expire.

It would be difficult, I think, to have the server computer generate the warning.

I believe that's what we're saying.. a JavaScript timer on the client side would popup another browser window with a warning when time elapsed. That popup window would have another timer that would redirect the parent to a page that kills the session and closes itself if that second timer elapses.