dotkpay Posted September 19, 2011 Share Posted September 19, 2011 Hello, How do I get a user's session destroyed when he closes his browser? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/247421-destroy-session-when-browser-is-closed/ Share on other sites More sharing options...
doddsey_65 Posted September 19, 2011 Share Posted September 19, 2011 Sessions are automatically destroyed when the browser is closed. Quote Link to comment https://forums.phpfreaks.com/topic/247421-destroy-session-when-browser-is-closed/#findComment-1270594 Share on other sites More sharing options...
Adam Posted September 19, 2011 Share Posted September 19, 2011 That's assuming the php.ini setting for "session.cookie_lifetime" is set to 0, which may not be the case if dotkpay is having issues. @dotkpay Can you confirm the value of the ini setting I mentioned above, or let us know if you're using a custom session handler? Quote Link to comment https://forums.phpfreaks.com/topic/247421-destroy-session-when-browser-is-closed/#findComment-1270607 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.