I’m currently programming an application which is supposed to log out the current user after x minutes of inactivity. I do realize that there’s a few ways to implement this, such as setting a timestamp when the user navigates and such, and then checking if too much time has passed every now and then.
However, before (hopefully) re-inventing the wheel and adding additional complexivity to the application, is there any native method to retrieve the time of last user interaction? (Preferably cross OS, but at least supporting Windows)
HttpSession.setMaxInactiveInterval()