I'm trying to destroy the shopping cart session once the items have been purchased, but the session seesm to persist, and I don't know how to stop it.
I've used
and
None of which work, what am I doing wrong?????
----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
I've used
Code:
session_destroy();
Code:
unset ($_SESSION['PHPSESSID']);
session_destroy();
and
Code:
unset ($_SESSION['cart']);
session_destroy();
None of which work, what am I doing wrong?????
----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..