-
Notifications
You must be signed in to change notification settings - Fork 79
Home
###REQUEST FOR INPUT Please don't hesitate to submit an issue, request or ask a question. Your feedback is appreciated.
###HOW IT WORKS The best way to understand how the idleTimeout script works is to load the jquery-idleTimeout-for-testing.js on your site, and watch the console debug log. One way to do this is to use Mozilla Firefox https://www.mozilla.org/en-US/firefox/new/ with the firebug addon: http://getfirebug.com/
Jquery-idleTimeout-for-testing.js includes iframe functionality and is heavily commented. You can learn quite a bit just by reading the code.
###USAGE Dependencies
- JQuery version 1.7 or newer
- JQuery UI version 1.9 or newer
- https://github.com/marcuswestin/store.js - version 1.3.4 or newer
Load the three scripts above before you load one of the jquery-idleTimeout scripts.
Next call the idle-Timeout script in 'document ready' function. Set the 'redirectUrl' to your site's logout page. This is the only configuration variable you must set: all others can be run at their default values.
Example - run with idle-Timeout defaults:
$(document).ready(function () {
$(document).idleTimeout({
redirectUrl: '/logout' // redirect to this url. Set this value to YOUR site's logout page.
});
});
###PROBLEMS? Please read the GENERAL TROUBLESHOOTING and IFRAMES INFORMATION & TROUBLESHOOTING pages.
###ABOUT The original script was philpalmieri's jquery-idleTimeout, but it did not have activity detection across multiple windows & tabs. A request to add this functionality was submitted, and the response from nestoru suggested the use of marcuswestin's store.js. https://github.com/philpalmieri/jquery-idleTimeout/issues/2#issuecomment-20855442
From there, josebalius created a fork of philpalmieri's that included the use of store.js. This version of the jquery-idleTimeout script was forked from the josebalius version and includes additional functionality.
Couldn't have done it without GitHub's Community. Thanks for all the help & support.