Revert "Clear the spiderID when logging in"
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 12 Mar 2021 09:06:26 +0000 (10:06 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 12 Mar 2021 09:06:26 +0000 (10:06 +0100)
As reported in PR #4071 this commit attempts to update a non-existant column.
The change should have been applied to the legacy session in wcf1_session, not
the actual session in wcf1_user_session.

This reverts commit 0d262d1080533b952de104f45df7cf5a360d8892.

see #4067
Resolves #4071

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

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