ah - seems similar, but not quite the same. You (Curt) were able to
execute my code without problem. My code on my servers failed 100% of the
time, whereas the bug in the report only showed up intermittently.
Thank you both again!
--
Jeff Stillwall
--
PHP General Mailing List (http://www.php
und (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
functi
ilstop
cocity, costate, cozip, cotype, jobtitle, status, dateadded
dateapproved, lastlogin
Anything illegal about any of those names that is making PHP go nutty? I'm
assigning them in that order, and out of those, only 6 stay set (loggedIn,
uid, status, dateadded, dateapproved, lastlo
SION[$key] = $value;
}
}
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!
Wrackingmybrain.
--
Jeff Stillwall
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Ow Mun Heng" wrote:
> I'm new but.. aren't you also supposed to register the session??
The code I posted was just a single function. I am calling session_start()
at the head of the page. Thanks, though.
--
Jeff Stillwall
--
PHP General Mailing List (http://www.p
part of an included file (via 'require'). Would that change anything?
I've done this before also - never had a problem until now!
--
Jeff Stillwall
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ever had a problem with sessions before. But I'm guessing it's
my code, as I can replicate the behavior on three different installations of
PHP/Apache.
--
Jeff Stillwall
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nction, I see that $userArray is populated correctly.
Also, a var_dump($_SESSION) at the end of the function shows all of the
session variables that I expect. It's when I leave this function that
certain $_SESSION vars disappear.
Yup - weird. Thanks.
--
Jeff Stillwall
--
PHP General
the function for $_SESSION, I see all
session vars are set within the scope of the function. Once outside of the
function, some stay set, some do not.
I've read the chapter in the manual about variable scope, and it seems
pretty clear that $_SESSION is a superglobal, and I do not have to dec
9 matches
Mail list logo