note 29357 added to ref.session

From: Date: Tue, 11 Feb 2003 06:13:45 +0000
Subject: note 29357 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-43769@lists.php.net to get a copy of this message
when you want to reset a session, using $_SESSION = null; will cause php (and apache 1.3) to show a cannot find server error. However, the correct way to achieve this is to do: $_SESSION = array(); which will reset the array as desired -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+29357 http://master.php.net/manage/user-notes.php?action=delete+29357 http://master.php.net/manage/user-notes.php?action=reject+29357

« previous php.notes (#43769) next »