12 lines
175 B
PHP
12 lines
175 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
if (session_status() !== PHP_SESSION_ACTIVE) {
|
|
session_start();
|
|
}
|
|
|
|
$_SESSION = [];
|
|
session_destroy();
|
|
|
|
header('Location: login.php');
|
|
exit; |