Re: [PHP] Storing objects in a session

2002-08-13 Thread Rasmus Lerdorf
You have to load the class definition for your Auth class before calling session_start() -Rasmus On Tue, 13 Aug 2002, Ron Dyck wrote: > Having trouble storing objects in a session. When I do this: > > if (!isset($_SESSION['auth'])) { > $auth = new Auth(); > $_SESSION['auth'] =& $auth; >

[PHP] Storing objects in a session

2002-08-13 Thread Ron Dyck
Having trouble storing objects in a session. When I do this: if (!isset($_SESSION['auth'])) { $auth = new Auth(); $_SESSION['auth'] =& $auth; } else { $auth =& $_SESSION['auth']; } I end up getting the following errors when I refresh the page. __PHP_Incomplete_Class Object ( [__