Atozed Forums

Full Version: Session Timeout intercept.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hallo,
How isĀ it possible, in "IWUserSessionBaseDestroy" to know if the procedure is activated by a Session Timeout?
Thank you for your time.
The only thing that actually destroys a session is the timeout thread, even when you explicitly terminate a session (it will be collected later by the timeout thread in the background).

I wonder if you are trying to find out is if a timeout actually occurred?
Hallo Alexander,
when the user clicks a 'close' button on the main form, my application is terminated by source line:
WebApplication.Terminate('Sessione conclusa.');
So I see that "IWUserSessionBaseDestroy" is immediately activated.

This is the reason to know if the destrroy derives from a regular close or from system timeout.
Do I wrong anything?
Thank you very much for your time.
If there isnt anything built in, you could always set a flag on the session when you terminate it manually.
(09-24-2019, 03:08 PM)kudzu Wrote: [ -> ]If there isnt anything built in, you could always set a flag on the session when you terminate it manually.
Thank you very much. I will do so.