Atozed Forums
Session Timeout intercept. - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Session Timeout intercept. (/thread-1251.html)



Session Timeout intercept. - OronzoConte - 09-18-2019

Hallo,
How isĀ it possible, in "IWUserSessionBaseDestroy" to know if the procedure is activated by a Session Timeout?
Thank you for your time.


RE: Session Timeout intercept. - Alexandre Machado - 09-23-2019

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?


RE: Session Timeout intercept. - OronzoConte - 09-23-2019

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.


RE: Session Timeout intercept. - kudzu - 09-24-2019

If there isnt anything built in, you could always set a flag on the session when you terminate it manually.


RE: Session Timeout intercept. - OronzoConte - 09-25-2019

(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.