summaryrefslogtreecommitdiffstats
path: root/admin/logout.php
blob: 88c60b33002c14d2ecc74d512224eeec73cf74ab (plain)
1
2
3
4
5
6
7
8
9
10
<?php

require_once __DIR__ . '/../app/app.php';

setcookie('auth', '', time() - 3600);
session_destroy();
session_regenerate_id();

header('Location: login.php');
die();