Ok, I have a cart object that I store customers' items in and whatnot.
I store this item in the session every time it changes and I load it from the session on every page.
i have the following line:
Code:
$cart = new djCart;
and whenever it's called, it seems to erase the $_SESSION['cart'], which is a saved version of djCart.
I var_dumped $_SESSION['cart'] immediately before and after that line, and before the line it has all the items saved (in object(djCart)#1) and after the line it's a completely empty object(djCart)#3.
Why does this happen? Mind you I'm dumping the same variable and it isn't referenced in that line of code. Am I missing something?