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 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

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

2003-07-15 Thread Matt Silva
: $customer = unserialize($_SESSION['acceptPayment']['serializedCustomer']); and now you can access the object. There is a hidden jewl about this method, I now no longer have to include or require the class file because it is already defined in the serialized string. Matt Matt

[PHP] Object can not be used after a session

2003-07-15 Thread Matt Silva
Hi I was wondering if anybody has any Ideas about or has experienced this I create a new object and then assign it to a session var $customer = new Customer($_GET['facilityID'], $_GET['customerID']); $_SESSION['acceptPayment']['customer'] = $customer; but later when I access that session var [

[PHP] Sessions and objects

2003-07-14 Thread Matt Silva
I create a new object and then assign it to a session var $customer = new Customer($_GET['facilityID'], $_GET['customerID']); $_SESSION['acceptPayment']['customer'] = $customer; but later when I access that session var [in the the same file but in a different function and different instance], php

Re: [PHP] Session Expiration?

2003-01-10 Thread Matt Silva
cookie_lifetime > > only applies to cookies. So I don't > > know why my sessions are not expiring. Does anybody have any Idea? Should > > I just be manually checking > > for the duration of the session(?) and then delete it if it has expired? > &