aboutsummaryrefslogtreecommitdiff
path: root/logout.php
blob: 40b770acc5b72668c533383331cb0d4deb49681f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
    praktrack - tracking the parts of a portfolio review
    Copyright (C) 2026  Friedrich Beckmann <friedrich.beckmann@tha.de>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
*/
include "setup.php";
my_session_start();
session_unset();
$params = session_get_cookie_params();
setcookie(
    session_name(),
    '',
    time() - 42000,
    $params["path"],
    $params["domain"],
    $params["secure"],
    $params["httponly"]
);
session_destroy();
header("Location: index.php");
exit;
?>