added rudimentary logout page
parent
790b9efbde
commit
5a9ddcbf99
|
@ -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>
|
Loading…
Reference in New Issue