As noted in the error, you must declare the class definition _before_
session_start():
require_once('includes/cart.php');
session_start();
methods are not stored within session
Paul wrote:
Hi All:
I have a simple page that checks for existence of object in a session.
If the object is not stor
Hi All:
I have a simple page that checks for existence of object in a session.
If the object is not stored in session object, it creates new one:
If (isset ($_SESSION["cart"])) {
$cart=$_SESSION["cart"];
} else {
$cart = new ShoppingCart ();
2 matches
Mail list logo