Re: [Phplib-users] php4 session fix, and some thoughts
Brought to you by:
nhruby,
richardarcher
From: Lindsay H. <fm...@fm...> - 2003-01-21 15:44:24
|
Thus spake Giancarlo on Tue, Jan 21, 2003 at 02:57:09AM CST > >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... Portions of the session object, notably registered variables and whether or not the session as been previously initialized, are stored. Your point correct. The session object itself isn't stored. -- Lindsay Haisley | "Everything works | PGP public key FMP Computer Services | if you let it" | available at 512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys> http://www.fmp.com | | |