[PHP] Re: PHP Classes and Sessions

2002-02-04 Thread Yasuo Ohgaki
Php-List wrote: > What is the proper way to transfer class properties through-out my pages... > > let's say i have a ShoppingCart Class and i have methods like > addToCart(id, qty) and deleteFromCart(id) > also i have properties like CartItems("id" => array(), "qty"=> array()) > > this is what i

RE: [PHP] PHP Classes and Sessions

2002-02-04 Thread Martin Towell
2002 4:30 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Classes and Sessions What is the proper way to transfer class properties through-out my pages... let's say i have a ShoppingCart Class and i have methods like addToCart(id, qty) and deleteFromCart(id) also i have properties like CartItems(&

[PHP] PHP Classes and Sessions

2002-02-04 Thread PHP-List
What is the proper way to transfer class properties through-out my pages... let's say i have a ShoppingCart Class and i have methods like addToCart(id, qty) and deleteFromCart(id) also i have properties like CartItems("id" => array(), "qty"=> array()) this is what i do... //when the user enters

[PHP] Classes and sessions

2001-07-24 Thread Andrew Sterling Hanenkamp
I am having some trouble with storing a class in a session variable. According to the information in the manual, an object will be serialized at the end of each request and then unserialized at the beginning automatically. However, with this code: For the first page I will get: stringvar is