Well, what would be if there's something wrong configured in php.ini in the session section??
Here is the code again:
<?
class test
{
function setTest ($number)
{
$this->number = $number;
}
var $number;
}
$mytest = new test;
$mytest->setTest (400);
session_register ("mytest");
echo "<a href='test3.php'>Next Page</a>";
?>
And the next page:
<?
class test
{
function setTest ($number)
{
$this->number = $number;
}
var $number;
}
session_start ();
echo "NUMBER:";
echo $mytest->number;
?>
To all the people in this forum, I would be nice if you try to run this code, and post me your results, perhaps, another one has had this problem, and knows how to avoid it.