Oject passed via session error

From: Date: Fri, 24 Mar 2006 23:38:23 +0000
Subject: Oject passed via session error
Groups: php.general 
Request: Send a blank email to php-general+get-232573@lists.php.net to get a copy of this message
Hi, I do this: <?php session_start(); require_once('classes/ns_cart.class.php'); if(!isset($_SESSION['ns_cart'])) $_SESSION['ns_cart'] = new NScart(); ?> The output will be the following with print_r of the $_SESSION: -------------------- Array ( [ns_cart] => nscart Object ( [myProducts] => Array ( [0] => ns_product Object ( --------------------- When I reloads the page I get the following: -------------------- Array ( [ns_cart] => __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => nscart [myProducts] => Array ( [0] => __PHP_Incomplete_Class Object --------------------- What is this? I am confused... /Peter

« previous php.general (#232573) next »