Files
2026-10-30 08:37:10 -05:00

12 lines
287 B
PHP

<?php
require __DIR__ . '/../includes/auth.php';
// Logout is POST-only with a CSRF token, so other sites can't log you out with a link or image
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
verifyCsrf();
startAdminSession();
logoutAdmin();
}
header('Location: login.php');