myvesta/web/logout/index.php
2018-04-10 04:01:12 +02:00

14 lines
161 B
PHP

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