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().