I'm passing an object as a variable using session_register() but can't seem to access its properties.
Code: Select all
echo "object is here<br>";
echo "object prop1 is".$testObj->prop1;
echo "No object here mate";
The IF indicates that the variable is set and is accessible. prop1 returns a result in the 1st page where the object is created from a class. Any ideas?