From: Tim Düsterhus Date: Tue, 2 Dec 2014 00:54:01 +0000 (+0100) Subject: Properly support $hideSession if virtual sessions are enabled X-Git-Tag: 2.1.0_Beta_1~105^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4eb06b20262be8fe8bf9e5314959de7ed055fffd;p=GitHub%2FWoltLab%2FWCF.git Properly support $hideSession if virtual sessions are enabled --- 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); }