You are here: Re: session variable and instances of classes « PHP Programming Language « IT news, forums, messages
Re: session variable and instances of classes

Posted by Scott Auge on 07/20/05 19:45

In article <42cad766$1_1@spool9-west.superfeed.net>,
"Michael G" <mike-g@montana.com> wrote:

> "Michael G" <mike-g@montana.com> wrote in message
> news:42cac7ae$1_2@spool9-west.superfeed.net...
> > What are the drawbacks, limitations, etc. of referencing/manipulating an
> > instance of an object across calls via a session variable?
> >
>
> I just noticed one thing that might be an issue. If the php enviroment
> variable session_auto_start is set to on objects cannot be stored as session
> variables. My question is, is it standard practice to set
> session_auto_start to 'off'?
>
> http://us3.php.net/manual/en/ref.session.php
>

I haven't tried it, but can't you serialize() the object, stuff it into
a session variable, and then get it back later on?

 

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

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