Storing objects in a session
| From: | Ron Dyck | Date: | Tue, 13 Aug 2002 21:29:39 +0000 |
| Subject: | Storing objects in a session | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-112437@lists.php.net to get a copy of this message | ||
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
(
[__PHP_Incomplete_Class_Name] => auth
I'm using php-4.2.2.
ron