Re: objects stored in sessions
| From: | Mark Weaver | Date: | Sun, 06 Apr 2008 15:29:14 +0000 |
| Subject: | Re: objects stored in sessions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272591@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
sweet! thank you Richard. -- 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)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?Yes. Just remember to include the class definition before you start the session on subsequent pages, otherwise you will encounter problems. Or alternatively use __autoload() to allow the class code to be loaded when you start the session.