Hi guys
I'm trying to figure out how to invalidate a session after a predetermined elapsed time without user interaction...
Something like,
User starts webapp, and logs-in...
Does a few things, but then, for let's say 30mins, he takes no action on the webapp... Let's say he forgets the webapp logged-in and browser opened... Then if he, or someone else, decides to refresh or do something in the webapp, I need it to automatically return to the landing page to logs-in.
What's the best approach for this?
A global storing the last time the page was loaded and compare it to the "now" page load?
I'm trying to figure out how to invalidate a session after a predetermined elapsed time without user interaction...
Something like,
User starts webapp, and logs-in...
Does a few things, but then, for let's say 30mins, he takes no action on the webapp... Let's say he forgets the webapp logged-in and browser opened... Then if he, or someone else, decides to refresh or do something in the webapp, I need it to automatically return to the landing page to logs-in.
What's the best approach for this?
A global storing the last time the page was loaded and compare it to the "now" page load?