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

session

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


zmbd
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

gits
Expert Mod 5K+
P: 5,320
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.