Re: OO Theory Question
| From: | Torsten Roehr | Date: | Wed, 18 Aug 2004 13:26:48 +0000 |
| Subject: | Re: OO Theory Question | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194152@lists.php.net to get a copy of this message | ||
"Ricardo Cezar" <hosptalab@wnet.com.br> wrote in message
news:20040818130141.88317.qmail@pb1.pair.com...
> Probably its a dumb question, but Im new to OO Programming, so...
>
> How can I store the instance of the class in the session????
>
> Thanks,
> Rics
That's no different to storing any other variable into the session:
$_SESSION['object'] =& $object;
(You don't need the ampersand in PHP5.)
Regards, Torsten Roehr