hi, i think that event " session.quit" must runs when i close the browser client that is connect to my webapp
i try to put breakpoint in session.close.code and when i close the browser connected to my webapp the code contained in session.close not run
can anyone help me ?
I guessing here, but…
Your server knows nothing about you closing the browser. The session will actually time out after a certain period of inactivity and then you will see the session close even firing…
ok i know the session.timeout …but
why there ares 2 session events … timeout and close i only work session.timeout ??
and what is the advantage of using session.timeout event and what of session.close event ??
sorry i would write this :
why there ares 2 session events … timeout and close IF only work session.timeout ??
Sorry no idea, I guess someone from XOJO can answer it better…
First, you’re confusing the Session.Timeout property, the Session.TImedOut event, the WebApplication.Timeout property, and the purpose of all three. Lookup each one in the LR, and also look at the Session.Quit method.
The Sesssion Close event will fire when the session closes, either by you calling Session.Quit or by the browser disconnecting (closing, going to another url, loss of internet, etc.). For Session.Quit, the Close event fires immediately. But for the others, the amount of time that it takes for the Close event to fire varies, but it does eventually fire (unless the app crashes). I have apps that use the Session.Close event and it works just fine.
Keep in mind that sessions don’t close immediately. They linger on the server side for up to 3 minutes.
“or by the browser disconnecting (closing, going to another url, loss of internet, etc.)”
ok i refer to session.timeout event, and session.close event, now
on my webApp, session.close is not fired when my browser change url, or browser close…
i have test this with breakpoints in session.close event and when i close the browser and the event is not fired.
hi Greg i have tried to wait much more of 3 minutes but the session.close not run …