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