Hi all,
We have had requests from our user base to provide the ability to automatically log a user out if their session has been inactive for a certain amount of time. Implementing the automatic log out itself is straight forward, but how would we detect inactivity generically?
I would consider "activity" to mean "interacting with any GUI controls either by using the mouse or the keyboard". We could code a "resetActivity" method on each event on each control type, but that would be quite expensive development-wise as well as unnecessarily increase the amount of traffic from the client to the app server. Another approach is to base it on database transactions which is much easier to detect generically, but that wouldn't help if a user is doing a lot of enquiring and no database updates.
Is there some generic Jade way or some other easy approach of detecting user inactivity?