Re: [PHP] Re: Object can not be used after a session

2003-07-16 Thread Matt Silva
Hi Mike Yes your right about when the session data is updated. The problem then lies in when I try to read the object from the session var. I include at the top of the file the class definition. Not to get sidetracked but when you say you wrote another layer, are you talking about utilizing the

Re: [PHP] Re: Object can not be used after a session

2003-07-16 Thread Mike Migurski
>Wow thats strange?? I am using PHP 4.3.2 as well and I don't see that >happening where it serializes the object when assigning it to the >$_SESSION. It doesn't do it when you assign it into the $_SESSION array, it does it when the script completes and updated session data is written to the sessi

Re: [PHP] Re: Object can not be used after a session

2003-07-16 Thread Matt Silva
Wow thats strange?? I am using PHP 4.3.2 as well and I don't see that happening where it serializes the object when assigning it to the $_SESSION. I am using the dbg debugger and nusphere PHP editor and I can step through the code and as I do it shows that the session var is not serialized. Howe

Re: [PHP] Re: Object can not be used after a session

2003-07-15 Thread Mike Migurski
>$customer = new Customer($_GET['facilityID'], $_GET['customerID']); >$_SESSION['acceptPayment']['serializedCustomer'] = serialize($customer); > >so now when I have moved on to another page or another instance of the >same page and I want to access the object from the session var, I do so >like thi

[PHP] Re: Object can not be used after a session

2003-07-15 Thread Matt Silva
It turns out when I was assigning the object to the session var, the object was not getting serialized. Serializing takes a variable and makes it into a string describing the variable and the value. This could be done for any variable type except Resources (MySQL connection vars) and Results