note 26664 added to ref.session

From: Date: Fri, 08 Nov 2002 14:11:36 +0000
Subject: note 26664 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-39164@lists.php.net to get a copy of this message
The documentation says that you don't *need* to declare $_SESSION as global via the keyword 'global'. The truth is, you *must* *not* declare it as global. If you write something like function blahr() { global $_SESSION; } you turn of the black magic which is bound to this variable. You cannot register any additional variables, neither you can change any existing session variable. -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+26664 http://master.php.net/manage/user-notes.php?action=delete+26664 http://master.php.net/manage/user-notes.php?action=reject+26664

« previous php.notes (#39164) next »