From: "Jeff Stillwall" <[EMAIL PROTECTED]>
>
> 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;
> }
> }
Why not just
$_SESSION['userArray'] = $userArray;
??
Then $_SESSION['userArray']['fname'] to access the values, for example.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php