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

// Hapus session admin saja agar tidak mengganggu session lain
if (isset($_SESSION['admin_id'])) {
    unset($_SESSION['admin_id']);
}
if (isset($_SESSION['admin_name'])) {
    unset($_SESSION['admin_name']);
}
if (isset($_SESSION['admin_username'])) {
    unset($_SESSION['admin_username']);
}

// Arahkan ke halaman login admin
redirect(SITE_URL . 'admin/login.php');
?>


