Avoid counting throttled sessions
This commit is contained in:
parent
aa571ec45f
commit
8476af159f
|
@ -1494,6 +1494,9 @@ $logfile=$logdir.'/newsportal.log';
|
||||||
if(!isset($_SESSION['throttled'])) {
|
if(!isset($_SESSION['throttled'])) {
|
||||||
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." Too many requests from ".$_SERVER['REMOTE_ADDR']." throttling", FILE_APPEND);
|
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." Too many requests from ".$_SERVER['REMOTE_ADDR']." throttling", FILE_APPEND);
|
||||||
$_SESSION['throttled'] = true;
|
$_SESSION['throttled'] = true;
|
||||||
|
if(isset($_SESSION['rsactive'])) {
|
||||||
|
unset($_SESSION['rsactive']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue