I'd like to logout users when the associated session expires as soon
as reasonably possible. Assume the users computer died for any
reason, I'd like to logout the user server-side by keeping the session
timeout as short as reasonably possible, maybe 3 minutes.
To keep the session alive so the server doesn't incorrectly logout the
user, an Ajax keep-alive post should be made no later than 60 seconds
after the last transaction-oriented Ajax post. I'd like to be able to
globally monitor all client-side Ajax request completions and reset a
countdown timer
Does this call
$.ajaxComplete(
function fnResetAjaxTimer() {
// reset timer code here
}
);
monitor all completions or is it necessary to use $.ajaxSetup?