I have a timer running on the server to do something after a period of inactivity, but I need to reset it whenever the user does something inside the form in the browser (like a button click).
Any suggestions on how to accomplish this without having to do it inside every single possible user event on the form’s controls?
Thanks
Subscribe to Application.BeginRequest in Form.Load and remember to unsubscribe in Form.Disposed since it’s static event and will hold on the reference preventing GC.
You may also handle Application.SessionTimeout instead. It will fire after a period of inactivity and before the session is actually teminated. If you set e.Handled = true Wisej will not show the built-in form and you can show your own.
Please login first to submit.