Hello.
basket is registered in an other file. session_register("basket");
<---Code----->
<?php
class obj{var $obvar}
function obj($par){$this->obvar = $par; }
}
@session_start();
//$n is from a for(..)..
echo basket[$n]->obvar;
?>
I always get the error, that obj must be registered before session starts....
Does anyone have a clue?
THX
Roger
PS: There is an object in the array, because it shows in the sessiondata and count($basket) works ok and has the values it should after adding items to the basket.