Files
system0-2.0/sys0-code/login/logout.php
2024-06-18 09:36:11 +01:00

15 lines
275 B
PHP

<?php
// Initialize the session
session_start();
// Unset all of the session variables
$_SESSION = array();
// Destroy the session.
session_destroy();
setcookie("keepmeloggedin","", time() - 3600);
// Redirect to login page
header("location: /login/login.php");
exit;
?>