Hello again.
I have a confirmation page, which takes the various bookings from 4 different pages. The variables are stored in Session variables, and then called on the confirm booking page.
If i click abort booking, it runs my logout script, which has unsets for all my sessions i use, but when i click on the bookings again, it still has all the previous session variables in it already.
How come my sessions are not clearing?
<?php
unset($_SESSION['username']);
unset($_SESSION['password']);
unset($_SESSION['customer_id']);
unset($_SESSION['rollercoaster_seat']);
unset($_SESSION['rollercoaster_time']);
unset($_SESSION['rollercoaster_samerow']);
unset($_SESSION['swingingship_seat']);
unset($_SESSION['swingingship_time']);
unset($_SESSION['swingingship_samerow']);
unset($_SESSION['bigwheel_seat']);
unset($_SESSION['bigwheel_time']);
unset($_SESSION['bigwheel_samerow']);
unset($_SESSION['logflume_seat']);
unset($_SESSION['logflume_time']);
$_SESSION = array();
session_destroy;
header('Location: index.html');
?>