added rudimentary logout page

master
BodgeMaster 2020-02-21 07:04:24 +01:00
parent 790b9efbde
commit 5a9ddcbf99
1 changed files with 17 additions and 0 deletions

17
threadr/logout/index.php Normal file
View File

@ -0,0 +1,17 @@
<?php
$_SESSION = array();
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]);
}
session_destroy();
?>
<!DOCTYPE html>
<!-- ToDo: Add proper page -->
<html>
<head>
</head>
<body>
<h1> Bye! Cya around some time soon. </h1>
</body>
</html>