打开多个选项卡中的非活动会话

I dealing with one problem. I have user idle timer built in jQuery so that if user is not active for 30 minutes he's been logged out of the app. This works perfectly on one browser tab open. Now I would like to have the same thing just for multiple tabs. So, if user open few tabs and work in only one of them he's still active for all app, my current set up logs him out from other tabs which he didn't use for 30 minutes. How can I communicate with all tabs at the same time? Thanks in advance, Wolf.

  • create a common timer for all the pages.A single function would do.Place this function in a separate js file
  • start your timer on window.onload.Pause your timer on window.blur.Restart your timer on window.focus

    -include this on every page of your application.

    You can get much more help if you show your code.