From decb820659e6888ac0d4b32129ee167ea5639f75 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 1 Jun 2016 12:54:00 +0200 Subject: [PATCH] Fixed problems with session in pandora mobile verison. Tiquet: #3656 --- pandora_console/mobile/include/user.class.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pandora_console/mobile/include/user.class.php b/pandora_console/mobile/include/user.class.php index ec65f18f48..7c11bf4828 100644 --- a/pandora_console/mobile/include/user.class.php +++ b/pandora_console/mobile/include/user.class.php @@ -45,14 +45,13 @@ class User { if ($this->logged) { $system = System::getInstance(); - $system->setSession('user', $this); + + //hack to compatibility with pandora + global $config; + $config['id_user'] = $this->user; - if (!$this->needDoubleAuth) { - //hack to compatibility with pandora - global $config; - $config['id_user'] = $this->user; - } $system->setSessionBase('id_usuario', $this->user); + $system->setSession('user', $this); } }