2024-06-10 23:23:51 +02:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
|
|
|
|
if (isset($_COOKIE['userData'])) {
|
|
|
|
unset($_COOKIE['userData']);
|
2024-06-16 17:17:55 +02:00
|
|
|
setcookie('userData', '', time() - 3600, '/');
|
2024-06-10 23:23:51 +02:00
|
|
|
}
|
|
|
|
|
2024-06-16 17:17:55 +02:00
|
|
|
$_SESSION = array();
|
2024-06-10 23:23:51 +02:00
|
|
|
|
|
|
|
if (ini_get("session.use_cookies")) {
|
|
|
|
$params = session_get_cookie_params();
|
|
|
|
setcookie(
|
|
|
|
session_name(),
|
|
|
|
'',
|
|
|
|
time() - 42000,
|
|
|
|
$params["path"],
|
|
|
|
$params["domain"],
|
|
|
|
$params["secure"],
|
|
|
|
$params["httponly"]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
session_destroy();
|
|
|
|
|
|
|
|
header("Location: /account/login");
|
2024-06-11 22:49:01 +02:00
|
|
|
exit();
|
2024-06-10 23:23:51 +02:00
|
|
|
?>
|