How do I track user site website interaction for implementing an idle timeout feature?
We want to implement some sort of idle timeout on our website.
I think there are 2 parts to the solution
1. a server-side code that "resets" a cookie time whenever the user visits a page (I'm thinking something like a sling filter?)
2. a client-side code (maybe via javascript) that resets the same cookie when the user interacts on the page (example: clicking on a form field)
Is there a better way to do this?
Thanks in advance.
edit: The reason why we want to implement idle timeout is because it's a requirement for any financial institution in my country.

