Basically i'm thinking that i'll store the main class inside a session and just serialize/unserialize it when i need to do something. like:
Code: Select all
if (isset($_SESSION['cart'])) {
$cart = unserialize($_SESSION['cart']);
//do stuff
$_SESSION['cart'] = serialize($cart);
}
Any thoughts would be appreciated!