Re: Passing objects between pages
| From: | Jochem Maas | Date: | Thu, 01 Dec 2005 08:35:00 +0000 |
| Subject: | Re: Passing objects between pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226687@lists.php.net to get a copy of this message | ||
Matt Monaco wrote:
What is the best way to pass an object between pages? Currently I am first serializing, then doing a base64_encode, this doesn't seem entirely efficient. (Especially the encode). I am however using the encode because I have the serialized object as the value of a hidden form element. I can only have alphanumerics here.stick the object in $_SESSION, making sure that you ALWAYS include the relevant class definition(s) BEFORE starting the session.