note 45374 added to function.session-start
| From: | scorp1us at NOSPAM dot yahoo dot NOSPAM dot com | Date: | Fri, 03 Sep 2004 19:06:52 +0000 |
| Subject: | note 45374 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75995@lists.php.net to get a copy of this message | ||
WARNING: $_SESSION is a SUPER-global. Using
function f(){
global $_SESSION;
/* expect $_session to work, but it won't */
}
Will not work as of this writing. $_SESSION is cleared by the global statement.
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45374
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45374&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45374&report=yes
Search -- http://master.php.net/manage/user-notes.php