From 8476af159f92f9a321e2d1b39ddd4ba9612bd064 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 4 Jul 2021 09:59:47 +0000 Subject: [PATCH] Avoid counting throttled sessions --- Rocksolid_Light/rocksolid/newsportal.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 1d6597d..95730d4 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -1494,6 +1494,9 @@ $logfile=$logdir.'/newsportal.log'; if(!isset($_SESSION['throttled'])) { file_put_contents($logfile, "\n".format_log_date()." ".$config_name." Too many requests from ".$_SERVER['REMOTE_ADDR']." throttling", FILE_APPEND); $_SESSION['throttled'] = true; + if(isset($_SESSION['rsactive'])) { + unset($_SESSION['rsactive']); + } } exit(0); }