Re: session variable and instances of classes
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: session variable and instances of classes

From: Scott Auge <scott_auge@yahoo.com>
Date: Wed Jul 20 2005 - 18:45:49 CEST

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?
Received on Mon Oct 17 21:12:34 2005