From 7895575a083f96cc9d16976e3b59b5fe8dc86271 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 8 Jan 2021 16:11:59 +0100 Subject: [PATCH] Consider an ACP session to be expired after 15 minutes in SessionAccessLogListener --- .../system/event/listener/SessionAccessLogListener.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/event/listener/SessionAccessLogListener.class.php b/wcfsetup/install/files/lib/system/event/listener/SessionAccessLogListener.class.php index 6d01de4343..af8f6c92bb 100644 --- a/wcfsetup/install/files/lib/system/event/listener/SessionAccessLogListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/SessionAccessLogListener.class.php @@ -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'])) { -- 2.20.1