36459-vm/logout.php
2026-05-27 14:29:58 +05:30

12 lines
164 B
PHP

<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
$_SESSION = [];
session_destroy();
// Back to home
header('Location: index.php');
exit;