note 39778 added to ref.session

From: Date: Tue, 10 Feb 2004 14:09:09 +0000
Subject: note 39778 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-64952@lists.php.net to get a copy of this message
To my experience you MUST NOT declare 'global $_SESSION' in a function which is thought to read or write session objects. After I removed the global declaration, I could use $_SESSION as expected. ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39778 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39778&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39778&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64952) next »