View Full Version : JavaScript Logout function works when browser window not focused

04-17-2011, 09:57 AM
Hey guys,

I got a log out due to inactivity script which works fine but only when the browser is NOT focused.

For example, I log into my website, and not do anything such as moving my mouse, it's supposed to bring an alert box saying I got logged out.

But it's only working when I have another window/tab open above the website., in other words, when it's not focused.

Any help guys?

Thanks in advance.

04-18-2011, 12:04 AM
This is the HTML/CSS section not the javascript section. And you should post your code.

Why not lose the js and use sessions for the time out???