diff --git a/src/Control/Session.php b/src/Control/Session.php index 5fc0f6c1e..1aeb951ee 100644 --- a/src/Control/Session.php +++ b/src/Control/Session.php @@ -648,7 +648,7 @@ class Session */ public function regenerateSessionId() { - if (!headers_sent() && session_status() == PHP_SESSION_ACTIVE) { + if (!headers_sent() && session_status() === PHP_SESSION_ACTIVE) { session_regenerate_id(true); } }