registering variables in session (arrays too)
| From: | Sebastian Baran | Date: | Thu, 21 Sep 2000 17:55:59 +0000 |
| Subject: | registering variables in session (arrays too) | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2765@lists.php.net to get a copy of this message | ||
Hello All,
I already know why I can't register arrays in session. I found, that I
couldn't register normal variable too. And then, eureka!!! I did all
those registering in function! I moved session_register outside
function and it works fine (arrays to!). So I checked bug database and
found bug id #3111 that matches my problems. And answer from sas@cvs.php.net
:
"session variables must be global variables"
No comments.
Why the hell nobody put this comment into manual???????????
I've lost few hours trying to register local variable from function.
Where I should send e-mail to somebody put this sentence into manual?
--
Sebastian Baran, Poland
mailto:sebab@info.com.pl