34452-vm/logout.php
Flatlogic Bot 1f29b92655 1
2025-09-28 18:10:47 +00:00

15 lines
237 B
PHP

<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
// Unset all of the session variables
$_SESSION = [];
// Destroy the session.
session_destroy();
// Redirect to login page
header('Location: login.php');
exit;