This repository has been archived on 2026-10-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nsl/logout.php
2024-11-05 11:26:22 -08:00

8 lines
191 B
PHP

<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/mysql.php"; ?>
<?php
if(isset($_SESSION['siteusername'])) {
$_SESSION = [];
session_destroy();
}
header("Location: /");
exit();