objects stored in sessions
| From: | Mark Weaver | Date: | Sun, 06 Apr 2008 15:02:07 +0000 |
| Subject: | objects stored in sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-272588@lists.php.net to get a copy of this message | ||
Hi All,
I've got something on my little mind, and please keep in mind I'm still somewhat new to PHP Oop, so please excuse my silly ass if I ask something that should be obvious.
I've got an application that I'm re-writing from PERL to PHP Oop. At the beginning of the application, at log in, a session is created for this user. What I would like to do is create a user object and store object properties in that session.
So, if I create a user object, set the properties of said user object and store that object in the user session will that object be available throughout the application from the session?
thanks,
--
Mark
-------------------------
the rule of law is good, however the rule of tyrants just plain sucks!
Real Tax Reform begins with getting rid of the IRS.
==============================================
Powered by CentOS5 (RHEL5)