Releases: HTMLGuyLLC/jTimeout
Releases · HTMLGuyLLC/jTimeout
Added session key for multi-session tracking
3.2.0 Version bump and correction
Added destroy() method, thanks Caleb Anderson for your contribution
3.1.0 Added destroy method - thanks Caleb Anderson
Forgot to minimize before pushing to NPM, gotta bump patch version
3.0.3 Forgot to minimize before pushing to NPM, gotta bump patch version
Block IE caching of GET request
3.0.2 Update jTimeout.min.js
Block jQuery 4.x until it's tested
Merge pull request #21 from Locutus83/master Allow jQuery 3.x
Rewrite, fixes, and added to NPM
Rewritten to use an expiration date instead of a counter. This improves reliability, simplifies the process by removing the need to identify tabs, etc.
Had to update all links/author information. VersatilityWerks is now HTMLGuy, LLC
Added onSessionExtended callback which gets triggered after a timeout if another tab or request extends the session again.
Added to NPM
Fix to decrementing logic
Merge pull request #17 from ggirard/master Change decrement logic
Minor improvements
2.1 improve structure, migrate logic to defaults, stop countdown after 0
Version 2 with new mouse-move extend session feature
Added .reset()
Added because sometimes you need a quick way to change the timer. For instance, if an AJAX request is made and it extends the user's session.
$.jTimeout.reset();
will set the timer back to the $.jTimeout.defaults.timeoutAfter param
$.jTimeout.reset(1440);
will set the timer back to whatever time you pass (1440 in this case)
Recommended usage:
$.get('/my-ajax-page', function(data){
$.jTimeout.reset();
//handle ajax response
});