Consider an ACP session to be expired after 15 minutes in SessionAccessLogListener
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 8 Jan 2021 15:11:59 +0000 (16:11 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 20 Jan 2021 15:04:08 +0000 (16:04 +0100)
wcfsetup/install/files/lib/system/event/listener/SessionAccessLogListener.class.php

index 6d01de4343d2084725104d220eea1b806f863fd2..af8f6c92bb8ea28d9fbc3da4877c115ccc790e82 100644 (file)
@@ -24,10 +24,12 @@ class SessionAccessLogListener implements IParameterizedEventListener {
                        // try to find existing session log
                        $sql = "SELECT  sessionLogID
                                FROM    wcf".WCF_N."_acp_session_log
-                               WHERE   sessionID = ?";
+                               WHERE   sessionID = ?
+                               AND     lastActivityTime > ?";
                        $statement = WCF::getDB()->prepareStatement($sql);
                        $statement->execute([
                                WCF::getSession()->sessionID,
+                               (TIME_NOW - 15 * 60)
                        ]);
                        $row = $statement->fetchArray();
                        if (!empty($row['sessionLogID'])) {