note 26664 deleted from ref.session by maxim
| From: | maxim@php.net | Date: | Fri, 08 Nov 2002 14:18:29 +0000 |
| Subject: | note 26664 deleted from ref.session by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39166@lists.php.net to get a copy of this message | ||
The documentation says that you don't *need* to declare $_SESSION as global via the keyword
'global'. The truth is, you *must* *not* declare it as global. If you write something like
function blahr() {
global $_SESSION;
}
you turn of the black magic which is bound to this variable. You cannot register any additional
variables, neither you can change any existing session variable.