Re: [PHP] Oject passed via session error

2006-03-25 Thread Chris
You need to declare the class before you call session_start(). Otherwise it can't create the object properly. Peter Lauri wrote: Hi, I do this: The output will be the following with print_r of the $_SESSION: Array ( [ns_cart] => nscart Object (

[PHP] Oject passed via session error

2006-03-25 Thread Peter Lauri
Hi, I do this: The output will be the following with print_r of the $_SESSION: Array ( [ns_cart] => nscart Object ( [myProducts] => Array ( [0] => ns_product Object ( -