...

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



lenOx_
04-17-2011, 08: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.

sunfighter
04-17-2011, 11:04 PM
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???



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum