NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: HPabon on June 28, 2012, 07:56:07 PM
-
Hello,
How can I delete the session values if the user does not click "log out" and
simply closes the browser?
TIA
Hector
-
Hi Hector,
Firstly, logging out does not delete a session. It's just a logout. The Session only deletes when the "session time" expires. You can of course call delete session manually when the user logs out - alto ugh you can get into tricky situations doing that.
If the user turns off their browser, or navigates away from your app, or turns off their machine, or whatever, then you do not get any notification of that. In these cases the sessions are tidied up by the server after the session times out.
cheers
Bruce
-
Hi Bruce,
If the user turn of the browser, it means that variables simply are cleaned by itself?
If that the case, then there will be nothing to worry about some values stay in memory. Correct?
Regards
Hector
-
correct