<?php
require_once '../config.php';

// Clear admin session
unset($_SESSION['admin_id']);
unset($_SESSION['admin_name']);  
unset($_SESSION['admin_username']);

setFlash('success', 'Successfully logged out!');
header('Location: ' . SITE_URL . '/admin/login.php');
exit;
?>