Far Cry Posted September 15, 2010 Share Posted September 15, 2010 Hi there, I was wondering if it is possible to (on the closing of a browser to a logged in user) to automatically destroy that session. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/213483-session_destroy-on-browser-close/ Share on other sites More sharing options...
micah1701 Posted September 15, 2010 Share Posted September 15, 2010 closing the browser kills the session anyway. unless you're talking about cookies? Link to comment https://forums.phpfreaks.com/topic/213483-session_destroy-on-browser-close/#findComment-1111332 Share on other sites More sharing options...
Far Cry Posted September 15, 2010 Author Share Posted September 15, 2010 I should have worded that better, I want to capture the window close event somehow, and run a query upon that. Link to comment https://forums.phpfreaks.com/topic/213483-session_destroy-on-browser-close/#findComment-1111333 Share on other sites More sharing options...
litebearer Posted September 15, 2010 Share Posted September 15, 2010 the act of closing browser occurs on clientside - it may entail the inclusion of a javascript - "Are you sure you want to exit" sort of thing - so that something can be sent back to server indicating they exited. Link to comment https://forums.phpfreaks.com/topic/213483-session_destroy-on-browser-close/#findComment-1111369 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.