Destroy session on browser close

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kingconnections
Forum Contributor
Posts: 137
Joined: Thu Jul 14, 2005 4:28 pm

Destroy session on browser close

Post by kingconnections »

Is there a way to expire sessions as soon as the browser is closed. So that regardless next time they would have to relogin?

Thanks in advance!
arukomp
Forum Contributor
Posts: 113
Joined: Sun Sep 24, 2006 4:22 am

Post by arukomp »

Doesn't sessions destroy themselfs on browser close? i read somewhere that they do
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

unless you specify otherwise
kingconnections
Forum Contributor
Posts: 137
Joined: Thu Jul 14, 2005 4:28 pm

Post by kingconnections »

oh - hmmm wierd so, I was having an issue where if i explictly did not unset and destroy the session you could come back to that page later and it would still display the client data. Let me see if that is still the issue.
Post Reply