I'm having a difficult time getting my session/session variables to be destroyed. I have a shopping cart being populated by an order_id, which is my session_id. After the user has finished all of his ordering, he should land on an "Order Complete" page and the session id should be reset, along with any session variables. I am not sure how to accomplish this. This is currently what I have.
<?php
session_start();
$_SESSION = array();
session_destroy();
session_unset();
$orderID = session_unset();
?>
The previous pages code look like this.
<?php
session_start();
session_register ("orderID");
$orderID = session_id();
?>
Please advise, thank you.