myvesta/web/logout/index.php
2020-12-12 13:52:26 +01:00

15 lines
192 B
PHP

<?php
session_start();
if (!empty($_SESSION['look'])) {
unset($_SESSION['look']);
header("Location: /");
} else {
session_destroy();
header("Location: /login/");
}
exit;
?>