Re: [Phplib-users] php4 session fix, and some thoughts
Brought to you by:
nhruby,
richardarcher
From: Giancarlo <gia...@na...> - 2003-01-21 08:57:48
|
> Basically, the instance variable $sess->in wasn't being saved across > sessions, and Joe Stewart noted as much in his code comments. setup.inc was > being run on each page access, so any stored information was getting wiped > out since $cart->start(), in my setup.inc, ran each time a page was loaded. > > The underlying problem is that phplib session management no longer > instantiates a session class with all the public and private instance > variables needed by the API. While the $sess object stored in $_SESSION can Sorry. I didn't follow this. Why do you say that the $sess object is saved in the session? I am almost sure that $sess itself does not come from the session persistance. It is an object that is reinstantiated at every start from the source included, ant only its properties are deserialized from the storage... Gian |