Objects in Session variables ?

From: Date: Thu, 04 Jan 2001 21:38:56 +0000
Subject: Objects in Session variables ?
Groups: php.general 
Request: Send a blank email to php-general+get-32714@lists.php.net to get a copy of this message
Hello, In my current PHP4 project, I have a "User" class, amongst a couple of other classes. What I'd like to is: when the user logs on to the site, store his personal "User" object in a session variable so that I can easily access all of his information from any page without having to requery the database to get that information. Is this possible, e.g. can one simply session_register() an instance of a PHP class, even if I'll lose the methods and only keep the member variables ? Thanks !

« previous php.general (#32714) next »