Re: Some SESSION Vars not Registering
| From: | Curt Zirzow | Date: | Thu, 24 Jul 2003 14:06:02 +0000 |
| Subject: | Re: Some SESSION Vars not Registering | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156642@lists.php.net to get a copy of this message | ||
* Thus wrote Jeff Stillwall (jstill@audioengine.net):
> "CPT John W. Holmes" wrote:
>
> > Why not just
> >
> > $_SESSION['userArray'] = $userArray;
> >
> > ??
> >
> > Then $_SESSION['userArray']['fname'] to access the values, for
> > example.
>
> Well, yes, that does work. And it's an acceptable workaround (I've already
> updated my code). It's nice in that it let's me keep the keys that match my
> database columns.
>
> However, it's really just that: a workaround. I'd still love to know why I
> can't register certain variables and have them stick outside of that one
> function. I think I will never find out.
>
I was browsing the php.net site and came accross this:
http://bugs.php.net/bug.php?id=23354
Note the last comment on the bug. It seems that person has been
having the same problem as you.
HTH,
Curt
--
"I used to think I was indecisive, but now I'm not so sure."