You are here: Re: Passing an Object via Session « All PHP « IT news, forums, messages
Re: Passing an Object via Session

Posted by deresh on 10/20/05 13:55

On Thu, 13 Oct 2005 13:51:23 -0700, jimbojones230 wrote:

> Okay, so I guess I could pass all of the object variables, instantiate a
> new object, and then assign it the session variables. i.e.
>
> page1.php
>
> $object = new Class();
> $object->var = $value;
> $_SESSION['value'] = $value;
>
> page2.php
>
> $object = new Class();
> $value = $_SESSION['value'];
> $object->var = $value;
>
>
> Would something like that work?


http://php.linux.hr/manual/en/language.oop.serialization.php

i think this is a solution of all your problems :)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация