Re[2]: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Kelly Hallman
Apr 10 at 1:39pm, Tom Rogers wrote: > Is your __sleep() function returning the array required by serialization? Since you mentioned it, I tried returning an array and it did not segfault, thought it was initially unclear what the array was for. After reading over most of the documentation about s

Re[2]: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Tom Rogers
Hi, Saturday, April 10, 2004, 10:51:20 AM, you wrote: KH> Apr 9 at 2:49pm, Jason Giangrande wrote: >> Kelly Hallman wrote: >> > Try it without serializing, it works. >> >> After retesting, it seems you are correct. I guess the same bad >> __sleep() code that was causing the object not to unseri

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Kelly Hallman
Apr 9 at 2:49pm, Jason Giangrande wrote: > Kelly Hallman wrote: > > Try it without serializing, it works. > > After retesting, it seems you are correct. I guess the same bad > __sleep() code that was causing the object not to unserialize at all was > also preventing automatic serialization. Fo

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Jason Giangrande
Kelly Hallman wrote: Apr 9 at 11:12am, Jason Giangrande wrote: You shouldn't serialize() objects prior to assign to a session variable. The default session handler automatically serializes the data. Assigning a serialized object value to a session just adds redundancy and overhead. Actually, on

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Kelly Hallman
Apr 9 at 11:12am, Jason Giangrande wrote: > > You shouldn't serialize() objects prior to assign to a session variable. > > The default session handler automatically serializes the data. Assigning a > > serialized object value to a session just adds redundancy and overhead. > > Actually, only if

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Jason Giangrande
Kelly Hallman wrote: Apr 9 at 1:44am, Jason Giangrande wrote: Jason Giangrande wrote: I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable When I var_dump() $_SESS

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Kelly Hallman
Apr 9 at 1:44am, Jason Giangrande wrote: > Jason Giangrande wrote: > > I'm having a problem unserializing objects that are passed from page to > > page with sessions. Registered globals is disabled so I am using the > > $_SESSION array to store session variable > > > > When I var_dump() $_SESSI

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-08 Thread Jason Giangrande
Jason Giangrande wrote: I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable and am not using session_register(). Here's what I'm doing. On first page: $auth = ne