The functionality is working as designed. In order to register account_id and account_nick with values, you have to assign those variables values first. You’re simply registering two empty session variables and the output of print_r shows that they have in fact been set.
You either need to set $account_id and $account_nick to something first or set them without the session_register function like this: $_SESSION[“account_id”] = “value”; I would suggest that anyway because session_register has been deprecated.
[quote]// Use of session_register() is deprecated
$barney = “A big purple dinosaur.”;