This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/public/logout.php
2022-01-14 07:43:31 +01:00

16 lines
234 B
PHP

<?php
// Initialize the session
session_start();
// Unset all of the session variables
session_unset();
// Destroy the session.
session_destroy();
session_start();
// Redirect to login page
header("location: login.php");
exit;
?>