snuffler-web/logout.php

8 lines
167 B
PHP
Raw Normal View History

2024-09-28 08:21:52 +03:00
<?php
setcookie("token", "", 0);
require_once('inc/database.php');
$db = new DataBase();
$db->tokenRemove(base64_decode($_COOKIE['token']));
header("Location: /");
?>