I have a session varible that i registered with the session_register(); function. The exact code is:
/Assign user values/
$user = array("id" => $row[userid],
"username" => $row[username],
"password" => $row[password],
"datereg" => $row[datereg],
"posts" => $row[forumposts],
"email" => $row[email],
"name" => $row[name],
"homepage" => $row[homepage]);
/*Start session and information var*/
session_start();
session_register("user");
Now in another script i want to print out a value of the $user array using a more secure method ($HTTP_SESSION_VARS[]). How would i go about doing this? I have tryed:
echo $HTTP_SESSION_VARS[user[posts]]; This does not work (it returns a phrase error. Any ideas on how to go about this?