note 9060 modified in ref.session by yohgaki

From: Date: Sat, 19 Jan 2002 06:26:09 +0000
Subject: note 9060 modified in ref.session by yohgaki
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25095@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. --was-- 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. http://www.php.net/manual/en/ref.session.php

« previous php.notes (#25095) next »