JillElaine jquery-idleTimeout Demo Page

Code Page - https://github.com/JillElaine/jquery-idleTimeout

To see functionality, do not press any keys, click your mouse or scroll your mousewheel for 30 seconds.

Functions across multiple windows and tabs within the same domain

Try it! Click here to open another browser window/tab of this page.

Requirements

Functionality & Features

Optional Functionality

If user manually logs out with a click of your site's 'Logout' button and not with use of the idleTimer function, you can force all 'same domain' windows/tabs to redirect to your 'redirectUrl' page by adding a small snippet of javascript to the user's 'redirectUrl' page. Note: all required scripts must be available on the 'redirectUrl' page for this to work.

Optional 'Manual Logout' Script

<script type="text/javascript">
  $(document).ready(function(){
    if (store.enabled) {
      store.set('idleTimerLoggedOut', true);
    } else {
      alert('Dependent file missing. Please see: https://github.com/marcuswestin/store.js');
    }
  });
</script>

The Demo Runtime Configuration

The Demo Runtime Configuration Script

<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $(document).idleTimeout({
      idleTimeLimit: 30000, // 30 seconds
      dialogDisplayLimit: 30000, // Time to display the warning dialog before redirect (and optional callback) in milliseconds. 30000 = 30 seconds, 180000 = 3 Minutes
      redirectUrl: 'https://github.com/JillElaine/jquery-idleTimeout', // redirect to this url
      activityEvents: 'click keypress scroll wheel mousewheel', // separate each event with a space
      sessionKeepAliveTimer: false, // Set to false to disable pings.
    });
  });
</script>