First of all Set Session time out on the page where you want to clear Sessions
<?php
// destroy session in 15 minutes, 900 ms =15 minutes
if (isset($_SESSION['LAST_ACTIVITY_step1']) && (time() - $_SESSION['LAST_ACTIVITY_step1'] > 900)) {
header("Location:http://www.hotbartendersla.com/session-destroy");
}
$_SESSION['LAST_ACTIVITY_step1'] = time(); // the start of the session.
?>
make a new page(in wordpress) to destroy sessions and add template to that page,
pagedestroy-sessions.php
<?php
/*
Template Name: Destroy Sessions
*/
session_start();
include('header.php');
session_destroy();
session_unset();
?>
<h2>Session Has Been Destroyed </h2>
<?php
include('footer.php');
?>
<script type="text/javascript">
function redirect() {
document.location = 'https://www.hotbartendersla.com/event-booking-step-1';
}
<!- after 1 second redirect to event-booking-step-1 Page-->
setTimeout(redirect(),1000);
</script>