From 0d262d1080533b952de104f45df7cf5a360d8892 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 11 Mar 2021 09:45:26 +0100 Subject: [PATCH] Clear the spiderID when logging in --- .../install/files/lib/system/session/SessionHandler.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index ee482a1579..80d9322801 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -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, ]); -- 2.20.1