Setting Values of Objects inside Session Objects
- From: afrinspray@xxxxxxxxx
- Date: 3 Mar 2006 14:25:18 -0800
I have one session object:
$_SESSION['session_object'] = new SessionObject(some values here);
And inside the SessionObject class definition, I'm creating two other
objects:
class SessionObject {
public function __construct(...) {
...
$this->class1 = serialize(new Class1(...));
...
}
}
Here's an example of a get function I'm using:
public function &getClass1() {
$unserialized_obj = unserialize($this->class1);
return $unserialized_lock;
}
How can I set some values in Class1 and Class2 and have them carry from
page to page? What am I missing? I think my references technique is
kinda screwed up. Can I set values of objects inside objects in
sessions?
Thanks,
Mike
.
- Follow-Ups:
- Re: Setting Values of Objects inside Session Objects
- From: ZeldorBlat
- Re: Setting Values of Objects inside Session Objects
- From: afrinspray
- Re: Setting Values of Objects inside Session Objects
- Prev by Date: Re: using IFrames ... and when there is an enter character...
- Next by Date: Re: Setting Values of Objects inside Session Objects
- Previous by thread: Function to convert to positive number?
- Next by thread: Re: Setting Values of Objects inside Session Objects
- Index(es):