By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,677 Members | 1,709 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,677 IT Pros & Developers. It's quick & easy.


P: 1
I want the session destroy on browser close using php..
Dec 9 '15 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 5,397
We do ask that you attempt this first and then post your code.
People are more willing to help if you show that you've made an effort.

Give you hint... maxlifetime

So if you will post your code, formatted with the [CODE/] tool please, we can help point you in the right direction.
Dec 9 '15 #2

Expert Mod 5K+
P: 5,389
you can always use the onbeforeunload event to fire a XMLHttpRequest for example to ur webserver that destroys the session if you want to
Dec 18 '15 #3

Post your reply

Sign in to post your reply or Sign up for a free account.