This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
stafett-for-livet/logout.php
2021-10-11 10:34:32 +02:00

17 lines
294 B
PHP

<?php
// Initialize the session
session_start();
// Unset all of the session variables
$_SESSION = [];
// Destroy the session.
session_destroy();
session_start();
$_SESSION['alert'][] = ['info', 'Du har blitt logget av.'];
// Redirect to login page
header("location: login.php");
exit;
?>