<?php // logout.php - Handles admin logout
session_start(); // Start the session

// Unset all session variables
$_SESSION = array();

// Destroy the session
session_destroy();

// Redirect to the login page
header('Location: admin_login.php');
exit;
?>