You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lior Shliechkorn <li...@yahoo.com> on 2003/05/08 17:51:40 UTC

Interesting Addition: session management

Also, if you are interested in knowing, or in implementing this feature you can add the following functionality. Now that the sessions are basically controlled by the amount of time that the user has the window open (since the top frame refreshes every 30 seconds) you can now put a javascript function in the pages such as setTimeout("function()", xxx) and after a specific time interval you can have a pop up window come up asking the user whether they want to remain online or not. <br>From that window (after 60 seconds they are automatically logged out if they have no reply) they can click yes, which refreshes the parent page (using a blank form if desired or simply just using the focus() function on the parent page), or if they click no then the parent page can be forwarded to the logout page where they sign in again if they choose or just close the browser window. Hope this helps if someone was interested,Lior

---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.