note 18311 added to function.session-destroy

From: Date: Fri, 18 Jan 2002 00:26:25 +0000
Subject: note 18311 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-25008@lists.php.net to get a copy of this message
When users log in and out of your site they will keep the original session you have set for them. if you need to have this change on each login then you should use the setcookie function to remove the session id on each logout. for instance: //remove the local session session_destroy(); //remove the client session setcookie("SES_NAME","","","/"); //redirect user with header header("somewhere"); exit; -- http://www.php.net/manual/en/function.session-destroy.php http://master.php.net/manage/user-notes.php?action=edit+18311 http://master.php.net/manage/user-notes.php?action=delete+18311 http://master.php.net/manage/user-notes.php?action=reject+18311

« previous php.notes (#25008) next »