14 lines
199 B
PHP
14 lines
199 B
PHP
<?php
|
|
session_start(); // Start the session
|
|
|
|
// Unset all session variables
|
|
$_SESSION = [];
|
|
|
|
// Destroy the session
|
|
session_destroy();
|
|
|
|
// Redirect to login page
|
|
header("Location: /login");
|
|
exit;
|
|
?>
|