summaryrefslogtreecommitdiffstats
path: root/public/admin/logout.php
blob: 25a3e4cef32dfcc88899e425ccddcc3f0248b0e0 (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();