close tab window does not end session

A

Anonymous

Guest
l1234567890 said:
When closing a browser definitely will end a session, but I've tested if using tab browser like netscape and firefox, the session still remain active whenever I close a tab. Is there any solution for this ?
:(

Close the browser.

Snarkiness aside, yes, that's the solution. This is the intended behavior of session cookies, and the behavior that the user expects. If you want the session to end without having to close the browser, then you should invoke session_destroy().
 
He ment that whn a browser tab is closed, but not the browser(some other tabs are open): sessions remain... this might be some problems..
 
Alexei Kubarev said:
He ment that whn a browser tab is closed, but not the browser(some other tabs are open): sessions remain... this might be some problems..

I know what he meant, and I worded my answer to address this.
 
Back
Top