You are here: Re: Incomlete object? « All PHP « IT news, forums, messages
Re: Incomlete object?

Posted by Joel Wan on 10/25/05 22:04

Lupher is right, resources cannot be placed in SESSION variables but
you can store entire objects in the session by serializing the object
for eg:

$_SESSION['myObject'] = serialize($myObject);

and on the other page, $myObject = unserialize($_SESSION['myObject'];

then $myObject->attribute will be available.

 

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

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