<?php
session_start();

// Clear session and cookie
$_SESSION = [];
session_destroy();

// Clear the remember cookie
if (isset($_COOKIE['remember'])) {
    setcookie('remember', '', time() - 3600, '/');
}

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