Re: [PHP] Some SESSION Vars not Registering

2003-07-25 Thread Jeff Stillwall
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

Re: [PHP] Some SESSION Vars not Registering

2003-07-24 Thread Jeff Stillwall
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

Re: [PHP] Some SESSION Vars not Registering

2003-07-23 Thread Jeff Stillwall
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

Re: [PHP] Some SESSION Vars not Registering

2003-07-23 Thread Jeff Stillwall
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

Re: [PHP] Some SESSION Vars not Registering

2003-07-23 Thread Jeff Stillwall
"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

Re: [PHP] Some SESSION Vars not Registering

2003-07-23 Thread Jeff Stillwall
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

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Jeff Stillwall
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

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Jeff Stillwall
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

[PHP] Some SESSION Vars not Registering

2003-07-22 Thread Jeff Stillwall
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