note 59129 added to function.session-register
| From: | info at miguelcenaculo dot com | Date: | Sun, 27 Nov 2005 06:02:13 +0000 |
| Subject: | note 59129 added to function.session-register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99169@lists.php.net to get a copy of this message | ||
I spent a night and some hours to figure why every $_SESSION variables passed ok from one page to
another, some of them were incremented in some include files.. but one of them just dont appear in
the destination page.. The session id was the same in both pages but for some reason this didnt work
for $_SESSION['TEST'].. (PHP ver 4.3.11)
It only worked with session_register('TEST') before i use $_SESSION['TEST']..
then i used phpinfo to check for register_globals and i saw it was ON.. but even so, the $_SESSION
should be global here and should register a session var automaticaly. Anyway, it started working
with session_register().
----
Manual Page -- http://www.php.net/manual/en/function.session-register.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59129
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59129&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59129&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59129&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59129&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59129&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59129&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59129&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59129&report=yes
Search -- http://master.php.net/manage/user-notes.php