"Curt Zirzow" wrote: > I modified this to do 31 variables: > http://zirzow.dyndns.org/php/session.php
Thanks again. > The only thing i can think, mabey, is size limit? how long are these > values your assigning? Not long at all. Now I'm (possibly) getting somewhere: When I modify the function to be this (notice the key name change by adding "s"): function setupUserEnv ($userArray) { $_SESSION['loggedIn'] = 1; foreach($userArray as $key=>$value) { echo "Assigning $key = $value<br>"; $_SESSION[$key."s"] = $value; } } It works! Now, I don't really want to do this. It impacts other code. These names match the columns in my database table. Frankly, I don't understand why it refuses to register variables with the names I've chosen! I can add anything to those keys (e.g. $_SESSION["g".$key]), but not use my names! The key names that I'm trying to assign are: loggedIn, uid, id, password, fname, lname, email, altemail, birthdate hphonenum, wphonenum, cphonenum, street, mailstop, city, state zip, country, weburl, freelance, coname, costreet, comailstop 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, lastlogin) . What in the world....? -- Jeff Stillwall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php