note 9060 deleted from ref.session by sander

From: Date: Sun, 07 Apr 2002 11:30:50 +0000
Subject: note 9060 deleted from ref.session by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28849@lists.php.net to get a copy of this message
If you want to start the session in a function and use the session variables as global variables in that same function, you need to put your 'global $sessionvar1, $sessionvar2;' AFTER the session_start() line. -- Editor's Note: Use of $HTTP_SESSION_VARS/$_SESSION is recommended.

« previous php.notes (#28849) next »