Properly support $hideSession if virtual sessions are enabled
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 2 Dec 2014 00:54:01 +0000 (01:54 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 2 Dec 2014 00:54:01 +0000 (01:54 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index d5d19b117ce075fae5e642510c0af694a32eb301..7754748fb6eccca99c476189cbbff227270d3391 100644 (file)
@@ -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);
                }