39414-vm/logout.php
2026-04-01 03:29:17 +00:00

12 lines
175 B
PHP

<?php
declare(strict_types=1);
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
$_SESSION = [];
session_destroy();
header('Location: login.php');
exit;