From the manual:
Serialize() handles the types integer, double, string, array
(multidimensional) and object (object properties will be serialized, but methods are lost).
Try to serialize the object before you pass it to the next page.
Someone also posted this in the comments section:
About serialize/unserialize on objects:
Use this class to unserialize objects :
class Unserializable
{
function unserialize($str)
{
$ary=unserialize($str);
for(reset($ary);$kv=each($ary);)
{
$key=$kv[key];
if (gettype($this->$key)!="user function")
$this->$key=$kv[value];
}
}
}
Hope that helps.
---John Holmes...