Re: Some SESSION Vars not Registering
| From: | Curt Zirzow | Date: | Wed, 23 Jul 2003 14:43:22 +0000 |
| Subject: | Re: Some SESSION Vars not Registering | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156460@lists.php.net to get a copy of this message | ||
* Thus wrote Jeff Stillwall (jstill@audioengine.net):
> "Curt Zirzow" wrote:
>
> > I've set up something what you describe, it works for me:
> >
> > http://zirzow.dyndns.org/php/session.php
>
> OK, here's more fuel for the fire. When passed to this function, $userArray
> is 31 elements long. The initial function I was using (and posted) was only
> grabbing 6 of those. I changed my function to grab all of them:
>
> function setupUserEnv ($userArray) {
> $_SESSION['loggedIn'] = 1;
> foreach($userArray as $key=>$value) {
> echo "Assigning $key = $value<br>";
> $_SESSION[$key] = $value;
> }
> }
>
I modified this to do 31 variables:
http://zirzow.dyndns.org/php/session.php
> Thanks to the echo statements, I see all 31 getting assigned. However, when
> I exit this function, and var_dump($_SESSION), only 6 are assigned!
The only thing i can think, mabey, is size limit? how long are these
values your assigning?
Curt
--
"I used to think I was indecisive, but now I'm not so sure."