<?php
require_once __DIR__ . '/../includes/db.php';

// Unset admin sessions
unset($_SESSION['admin_logged_in']);
unset($_SESSION['admin_id']);
unset($_SESSION['admin_username']);
unset($_SESSION['admin_name']);
unset($_SESSION['admin_role']);

// Destroy session
session_destroy();

header("Location: login.php");
exit();
?>
