I have a system that is required to force a page to its main section after thirty minutes of inactivity. Then after another hour of inactivity the user is logged out. I have done this using JavaScript, but now have a problem with multiple widows open. When a user is using only one window/tab and leaves the other one inactive for an 1 ½ hours then logging off unsets the first window/tab’s session variables. The problem arises if they are currently editing a page in the active window/tab.
My main question is what is the best way to keep track of the windows/tabs open so that I do not log them out until all tabs are inactive or the user logs off? Would a database counter be the best way?
Thanks!
Ann
----------------------------------
Abartone at gmail dot com
My main question is what is the best way to keep track of the windows/tabs open so that I do not log them out until all tabs are inactive or the user logs off? Would a database counter be the best way?
Thanks!
Ann
----------------------------------
Abartone at gmail dot com