mark0978
12 Jan 2012, 5:19 AM
Under a single sign-on setup I need to periodically grab an image from an authentication server. Normally this is done as each page is loaded, but in this case there aren't multiple pages. How can I detect activity across the app, in order to update the auth server with activity (to keep the session from timing out).
I've thought about grabbing the image every time data is loaded, but this could result in the session timing out even though the user has been working with the grid full of data that didn't require server access. Also, there are 5 tabs with different kinds of interactivity, grids forms, etc. Some of that activity would result in XHRs, but not all of it, so I'm trying to find something that can worry about the whole interactivity problem outside of the actual app itself. Much like a screen saver watches over the use of anything on the desktop.
I guess I'm looking for clicks and keystrokes mostly, not sure what else to count as activity (at the moment).
How could you do this ext4
I've thought about grabbing the image every time data is loaded, but this could result in the session timing out even though the user has been working with the grid full of data that didn't require server access. Also, there are 5 tabs with different kinds of interactivity, grids forms, etc. Some of that activity would result in XHRs, but not all of it, so I'm trying to find something that can worry about the whole interactivity problem outside of the actual app itself. Much like a screen saver watches over the use of anything on the desktop.
I guess I'm looking for clicks and keystrokes mostly, not sure what else to count as activity (at the moment).
How could you do this ext4