View Full Version : Creating an application timeout notification

13 Feb 2012, 7:22 PM
I'm building an EXT JS app that users will authenticate with and their session will expire after a fixed time period (ex 15 minutes) of inactivity. The server will take care of session expiration, but I would like to have the client notify the user two minutes before the session expires with an alert-notification.

What would be a good way to have an alert notification appear 13 minutes after the last AJAX request was sent to the application server? Ideally, I would like to have this notification appear even if the user closes their browser window and reopens it, so I'll have to save the timestamp of the last AJAX request in a cookie.

13 Feb 2012, 8:22 PM
You could try this. I noticed it a while back but haven't tried it yet. http://www.sencha.com/forum/showthread.php?155346-Ext.ux.ActivityMonitor()-User-Activity-Idle-Monitoring