Stop loading virtual sessions when a new session is created
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 2 Oct 2020 08:37:21 +0000 (10:37 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 2 Oct 2020 08:38:05 +0000 (10:38 +0200)
After this change virtual sessions are only created when `changeUser()` is
being called.

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 5669ccec81e9f9fa9c1caa9e1383d5c53aa8e625..18996147d5afc6c91239e6acc10385f707a21744 100644 (file)
@@ -520,7 +520,6 @@ class SessionHandler extends SingletonFactory {
                                else {
                                        // inherit existing session
                                        $this->session = $session;
-                                       $this->loadVirtualSession(true);
                                }
                        }
                        else {
@@ -530,7 +529,6 @@ class SessionHandler extends SingletonFactory {
                }
                
                $this->firstVisit = true;
-               $this->loadVirtualSession(true);
        }
        
        /**