From 9977fb8c3eee0edb3e7f81927bce7c27b858f163 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 25 Apr 2023 11:07:38 +0200 Subject: [PATCH] destruction de session --- core/module/user/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index c11ba4e4..e7e28b36 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -532,9 +532,6 @@ class user extends common file_put_contents(self::DATA_DIR . 'journal.log', $dataLog, FILE_APPEND); } - // Detruit la session - session_destroy(); - // Stockage des cookies if (!empty($_COOKIE['ZWII_USER_ID'])) { self::$userId = $_COOKIE['ZWII_USER_ID']; @@ -554,7 +551,10 @@ class user extends common { helper::deleteCookie('ZWII_USER_ID'); helper::deleteCookie('ZWII_USER_PASSWORD'); + + // Détruit la session session_destroy(); + // Valeurs en sortie $this->addOutput([ 'notification' => helper::translate('Déconnexion !'),