autoLogOut.js

Use localstorage for update the last user activity with unix-timestamp

Browser Issue

autoLogOut.js implements the event listener on following events:-

  1. Document ready
  2. Document unload
  3. Mouse movement
  4. Scroll event
  5. Window resize
  6. Storage change
All events are throttle with setTimeout approach, except storage change.

For implementation:

var signOut = autoLogOut.init({ timeout: 1, sessionKey: 'Key', debug: true});
signOut.onSignOut = function () {
    alert("Called Timeout");
    console.log("Timeout Called");
};

autoLogOut.init() function take intial configuration object, each key description mentioned below:-

autoLogOut.js have three methods:-