<?php
if(session_status() === PHP_SESSION_NONE) session_start();

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

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

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