Re: [PHP] Sessions and Classes

2002-02-06 Thread Wolfram Kriesing
> 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 ShoppingC

Re: [PHP] Sessions and Classes

2001-05-22 Thread Chris Lee
I think your mising the point. I use classes to create more modular code, I find it keeps my code structured and easy to modify for other sites. I can have a class for one site, I can then copy that class and easily modify it to suit for another site. I do not use my classes for storeing data (ie.