From f31b4b4d41b1921fd82d1bb355635e8dd005f7f2 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 12 Dec 2020 13:52:26 +0100 Subject: [PATCH] Update index.php --- web/logout/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/logout/index.php b/web/logout/index.php index 795eb65f..7f1d693c 100644 --- a/web/logout/index.php +++ b/web/logout/index.php @@ -4,10 +4,11 @@ session_start(); if (!empty($_SESSION['look'])) { unset($_SESSION['look']); + header("Location: /"); } else { session_destroy(); + header("Location: /login/"); } -header("Location: /login/"); exit; ?>