In my main page, I am hooking Application.SessionTimeout when my app is in the logged-out state, and unhooking that handler when my app is in the logged in state. My handler just sets e.Handled = true to suppress the timeout when not logged in.
The timeout does work, but the timing does not very closely match what the documentation says.
So, what’s going on with that period before Application.SessionTimeout is raised?
The session timeout is fired from the browser when the user is inactive after the number of seconds set in the sessionTimeout settings. However, to avoid starting and removing a javascript timer every single time the mouse moves or stops moving or a key on the keyboard is pressed Wisej sets a flag “skipNextTimeout” which skips the next timeout. So when the timeout is 60 seconds at the most it fires after 120 and at the minimum after 60.
Please login first to submit.