From 4eb06b20262be8fe8bf9e5314959de7ed055fffd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 2 Dec 2014 01:54:01 +0100 Subject: [PATCH] Properly support $hideSession if virtual sessions are enabled --- .../install/files/lib/system/session/SessionHandler.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index d5d19b117c..7754748fb6 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -585,7 +585,8 @@ class SessionHandler extends SingletonFactory { $user = $eventParameters['user']; $hideSession = $eventParameters['hideSession']; - if ($this->supportsVirtualSessions) { + // skip changeUserVirtual, if session will not be persistent anyway + if ($this->supportsVirtualSessions && !$hideSession) { return $this->changeUserVirtual($user); } -- 2.20.1