note 29178 added to ref.session

From: Date: Wed, 05 Feb 2003 11:07:33 +0000
Subject: note 29178 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-43448@lists.php.net to get a copy of this message
For use of $_SESSION, documentation says at top of EXAMPLES "... you 'do not need' to use the global keyword for $_SESSION. ...". But in fact you 'may not use global keyword' when accessing $_SESSION from within a function (PHP 4.3.0); otherwise a new global variable seems to be created/accessed! -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+29178 http://master.php.net/manage/user-notes.php?action=delete+29178 http://master.php.net/manage/user-notes.php?action=reject+29178

« previous php.notes (#43448) next »