Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript Logout function works when browser window not focused

    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.
    Last edited by lenOx_; 04-17-2011 at 09:10 AM.

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,175
    Thanks
    23
    Thanked 601 Times in 600 Posts
    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???


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •