Yes I think the problem was trying to assign a value straight into the $HTTP_SESSION_VARS; With my method after assigning the value it was available to me both through straight $nickname and through $HTTP_SESSION_VARS['nickname']. So here is the code I tried.
test1.php
PHP Code:
<?php
session_start();
session_register("nickname");
//Incidentally this did not work for me
$HTTP_SESSION_VARS['nickname'] = "jimmy crack corn";
//This did
$nickname = "jimmy crack corn";
// displays "jimmy crack corn"
echo $HTTP_SESSION_VARS['nickname'];
echo $nickname;
?>
<br>
<a href="test2.php">test2</a>
test2.php
PHP Code:
<?php
session_start();
// try to do something with "nickname"
$local = $HTTP_SESSION_VARS['nickname'];
print $HTTP_SESSION_VARS['nickname']; //prints jimmy crack corn
print $local; //prints jimmy crack corn
?>
<br>
<a href="test1.php">test1</a>
Bookmarks