Posts: 16
Threads: 5
Joined: Mar 2019
Reputation:
0
Location: Italy
Hallo,
How is it possible, in "IWUserSessionBaseDestroy" to know if the procedure is activated by a Session Timeout?
Thank you for your time.
Posts: 2,205
Threads: 186
Joined: Mar 2018
Reputation:
79
Location: Auckland, New Zealand
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?
Posts: 16
Threads: 5
Joined: Mar 2019
Reputation:
0
Location: Italy
09-23-2019, 10:02 AM
(This post was last modified: 09-23-2019, 11:43 PM by OronzoConte.)
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.
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
If there isnt anything built in, you could always set a flag on the session when you terminate it manually.