> What is the proper way to transfer class properties through-out my
> pages...
>
> if (!session_is_registered("myCart")){
>     $myCart = new ShoppingCart();
>     .... (some other stuffs...)
>     session_register("myCart");
> }

you dont need to do this, 

> else {
>     $myCart = new ShoppingCart();
> }
as far as i have experienced.
the type of the session variable is saved in the session too, so php 
automatically realizes that "myCart" is an instance of  
"ShoppingCart", you only need to be sure to have the class 
"ShoppingCart" defined before you start the session, if i remember 
right
that's at least how i do it and it works already for quite a while 
very well :-)

-- 
Wolfram

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to