3DSTownSquare/3ds/acc/logout.php
2022-05-26 12:34:34 +00:00

12 lines
No EOL
266 B
PHP
Executable file

<?php
session_start();
if(isset($_SESSION["ts_points"]) && isset($_SESSION["ts_user"])){
unset($_SESSION["ts_user"]);
unset($_SESSION["ts_points"]);
session_destroy();
header("Location: index.php");
} else {
// Already logged out.
header("Location: index.php");
}
?>