note 20598 added to function.session-start

From: Date: Tue, 09 Apr 2002 14:11:14 +0000
Subject: note 20598 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-29017@lists.php.net to get a copy of this message
Hello lopez@pepe-lopez.com, Why are you declaring the variables as global, and why declare each element of $user as a session variables when you can just session_register('user'); NOTE : had same problem with a function using a global variable, had to refer to it using $GLOBAL['user']. -- http://www.php.net/manual/en/function.session-start.php http://master.php.net/manage/user-notes.php?action=edit+20598 http://master.php.net/manage/user-notes.php?action=delete+20598 http://master.php.net/manage/user-notes.php?action=reject+20598

« previous php.notes (#29017) next »