Update index.php

This commit is contained in:
myvesta 2020-12-12 13:52:26 +01:00 committed by GitHub
parent 292d933f88
commit f31b4b4d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,10 +4,11 @@ session_start();
if (!empty($_SESSION['look'])) { if (!empty($_SESSION['look'])) {
unset($_SESSION['look']); unset($_SESSION['look']);
header("Location: /");
} else { } else {
session_destroy(); session_destroy();
header("Location: /login/");
} }
header("Location: /login/");
exit; exit;
?> ?>