This is the end code of my newly written shopping cart. At the end I want to erase everything in the cart table and kill the session. Then I go back to the start page where I want a new session to start.
It aint working... Everything I can find says this should clear the session variables and the session id.
Any help is greatly appreciated.
$sql = "DELETE FROM KC_CAMPUS.CART WHERE COOKIE_ID = '$s_id'";
$stmt = OCIParse($connect, $sql);
OCIExecute($stmt);
session_unset();
session_destroy();
HEADER ("LOCATION: home.php");exit;
?>