Page 1 of 1

session management on server

Posted: Sat Dec 09, 2006 7:54 am
by itsmani1
I wanted to know when a user don't logout properly and instead of it just closed browser window how server comes to know that this session has been closed?

for example i open a page and login after some time instead of signing out i just closed my browser window, now how the server will come to know that session has been expired? or session has been closed.

Note: I am using php script with apache web server.

thanks

Posted: Sat Dec 09, 2006 8:29 am
by feyd
Browsers typically dump any and all sessions immediately upon closing. Unless you maintained your session id across browser instances, the server will not see it and will issue a new one. Sessions also expire after a long enough period of no use on the server. The server will remove the associated data on regular intervals.