Re: Some SESSION Vars not Registering

From: Date: Thu, 24 Jul 2003 13:31:39 +0000
Subject: Re: Some SESSION Vars not Registering
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156638@lists.php.net to get a copy of this message
"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. Thank you very much for a very direct alternative. -- Jeff Stillwall

« previous php.general (#156638) next »