Hi everybody:
I have a little problem with the session's data in PHP4; i have the next code called pr.php:
<?
session_start();
$count= 3;
session_register("count");
$HTTP_SESSION_VARS["count"]=9;
?>
<body>
To continue, <A HREF="nextpage.php?<?=SID?>">click here</A>
</body>
But when i go to nextpage.php nothing happens and i wish to see the variable "count" that i started with the session_register in the pr.php file. Here is the nextpage.php code:
<?
$trash = $HTTP_SESSION_VARS["count"];
echo $trash;
?>
but i can't see the number nine. The variable count is not preserved through the site; it's not supossed that the session will keep the registered variables until the end of the session?
Thank you very much!!!