<?php
session_start();

// Only remove the guest session key — preserve any admin session
unset($_SESSION['username']);
unset($_SESSION['id']);

// If no sessions remain at all, destroy the session
if(empty($_SESSION)){
    session_destroy();
}

header("location: http://localhost/hotel-booking/index.php");
exit;
?>