Clear the spiderID when logging in
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 11 Mar 2021 08:45:26 +0000 (09:45 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 11 Mar 2021 08:47:33 +0000 (09:47 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index ee482a15797d2432142a41b4054d8d3ee481081b..80d9322801c8bc169185a1be4e6ddd15fa4e2d72 100644 (file)
@@ -1021,11 +1021,13 @@ final class SessionHandler extends SingletonFactory
 
             // ... perform the login ...
             $sql = "UPDATE  wcf" . WCF_N . "_user_session
-                    SET     userID = ?
+                    SET     userID = ?,
+                            spiderID = ?
                     WHERE   sessionID = ?";
             $statement = WCF::getDB()->prepareStatement($sql);
             $statement->execute([
                 $user->userID,
+                null,
                 $this->sessionID,
             ]);