Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session Timeout intercept.
#1
Hallo,
How is it possible, in "IWUserSessionBaseDestroy" to know if the procedure is activated by a Session Timeout?
Thank you for your time.
Reply
#2
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?
Reply
#3
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.
Reply
#4
If there isnt anything built in, you could always set a flag on the session when you terminate it manually.
Reply
#5
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)