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

17 lines
294 B
PHP
Raw Normal View History

2021-09-11 16:31:53 +00:00
<?php
// Initialize the session
session_start();
// Unset all of the session variables
$_SESSION = [];
// Destroy the session.
session_destroy();
2021-10-11 08:34:32 +00:00
session_start();
$_SESSION['alert'][] = ['info', 'Du har blitt logget av.'];
2021-09-11 16:31:53 +00:00
// Redirect to login page
header("location: login.php");
exit;
?>