You are here: Re: NEWBIE: Cookie usage question « PHP Programming Language « IT news, forums, messages
Re: NEWBIE: Cookie usage question

Posted by Rik on 07/30/06 05:43

Noodle wrote:
> Lorenzo Thurman wrote:
>> Is it possible to store a PHP object in a cookie?
>
> Cookies only store a simple text value. However, you can store an
> object in a PHP session.

Yup, serialize & unserialize
http://www.php.net/manual/en/language.oop.serialization.php

Class must be defined, so this autoload is quite handy:
http://www.php.net/manual/en/language.oop5.autoload.php

Note: Objects with circular references cannot be stored with serialize.

Grtz,
--
Rik Wasmus

 

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

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