philpalmieri / jquery-idleTimeout

idle Activity Timeout and logut redirect for jQuery
26 stars 115 forks source link

jquery-idleTimeout - ARCHIVE - DO NOT USE THIS PLUGIN!!!! ITS OLD AND LONG DEAD

use the much newer/improved fork https://github.com/JillElaine/jquery-idleTimeout

idle Activity Timeout and logut redirect for jQuery

Demo

Note: This uses the jQuery UI dialog, and UI themes. I am working on a non UI version – but it may be a while

I have an active demo here – it is running on a 30 second timer for the logout, and if you open firebug you will see the keep alive firing every 10 seconds.

How to use

Run with defaults

$(document).ready(function(){ $(document).idleTimeout(); });

With Optional Overrides

$(document).ready(function(){ $(document).idleTimeout({ inactivity: 30000, noconfirm: 10000, sessionAlive: 10000 }); });

The plugin has a few configuration items so you can customize it for your own needs…