/me holds empty envelope to head and proclaims, "syntax error on line 47"....
Seriously, how can we debug the "code you have used", as we don't know what it says? 😉
Is it possible you should be adding to $SESSION['cart'][], but are simply overwriting $SESSION['cart'] instead?
<Hmm, maybe the "KarnaK" thing is working....>