Re: [PHP] adding objects to $SESSION with serialize()

2011-03-23 Thread Donovan Brooke
Daniele Capuano wrote: Hi, I'm developing a web application using moodle, and I'm trying to create a PHP object tree to be used in $SESSION. Objects are defined as class foo { private $module_name; private $sub_modules = array(); } I have a main module (object) and I use the following funct

[PHP] adding objects to $SESSION with serialize()

2011-03-23 Thread Daniele Capuano
Hi, I'm developing a web application using moodle, and I'm trying to create a PHP object tree to be used in $SESSION. Objects are defined as class foo { private $module_name; private $sub_modules = array(); } I have a main module (object) and I use the following function to add serialized sub m