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 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. 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? 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
Archived
This topic is now archived and is closed to further replies.