Preserving objects with session

From: Date: Fri, 18 Aug 2000 10:58:54 +0000
Subject: Preserving objects with session
Groups: php.general 
Request: Send a blank email to php-general+get-12461@lists.php.net to get a copy of this message
Hi. I was asking about it a few weeks ago. I thought I got the right answer and solution. I'll describe the problem: on first page I create an object: include('obj_def.php'); $obj = new Object(); session_register('obj'); on the second one, I start session: include('obj_def.php'); session_start(); $obj -> method (); but if beetwen first and the second page users visits any other object stored in session gets class 'StdClass', and even if I included definition of the class on the second page object doesn't restore it's class :-( . I can see properties correctly stored, but I can't restore them :-( How to correct this? Przem

« previous php.general (#12461) next »