From 2519df2c2a73d306055fbd1b624adf671ba861ce Mon Sep 17 00:00:00 2001 From: osaajani Date: Thu, 6 Feb 2020 03:10:56 +0100 Subject: [PATCH] fix logout useless session_unset() --- controllers/publics/Connect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/publics/Connect.php b/controllers/publics/Connect.php index fb53b68..9948bb8 100755 --- a/controllers/publics/Connect.php +++ b/controllers/publics/Connect.php @@ -151,8 +151,8 @@ namespace controllers\publics; */ public function logout() { - session_unset(); session_destroy(); + $_SESSION = []; return $this->redirect(\descartes\Router::url('Connect', 'login')); }