aboutsummaryrefslogtreecommitdiff
path: root/public/logout.php
blob: 094ee229de3cc7439471aac71068e8357e3ac579 (plain)
1
2
3
4
5
6
7
8
9
<?php
$prev = $_COOKIE['prev'];
if (!$prev) $prev = "/";
http_response_code(302);
setcookie("prev", null, -1, "/");
setcookie("username", null, -1, "/");
setcookie("password", null, -1, "/");
header("Location: ".$prev);
?>