<?php
/**
 * admin/logout.php
 * Destroy session and redirect to login.
 */

require_once __DIR__ . '/../includes/config.php';

// Unset all session variables
$_SESSION = [];

// Destroy the session
session_destroy();

// Redirect to login
header('Location: login.php');
exit;