Re: Passing object reference to session
| From: | Richard Lynch | Date: | Fri, 08 Feb 2008 18:53:03 +0000 |
| Subject: | Re: Passing object reference to session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268967@lists.php.net to get a copy of this message | ||
On Thu, February 7, 2008 1:15 am, Michael Moyle wrote:
> I am new to the list and have a question that inspired me to join the
> list as I can not find any answer online.
>
> When a object reference is passed to the $_SESSION array what happens
> to
> the object? Is the object serialized and saved in session (in this
> case
> file)? Or just the reference with the object in memory remaining on
> the
> heap?
When a PHP script ends, nothing, and I mean nothing, is left on the heap.
The conclusion is left as an exercise for the reader.
:-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?