You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
Activity
itg-assistant commentedon Jun 12, 2026
Luca answered 2017-09-27 16:26:08 UTC
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.
itg-assistant commentedon Jun 12, 2026
Orel Gabay answered 2017-10-01 09:03:22 UTC
Hi Luca ! Joins the question of Ray.
Can you attache a little sample please ? it will be great !
Thanks.
Orel