Update src/Control/Session.php

Co-Authored-By: Guy Marriott <guy.the.person@gmail.com>
This commit is contained in:
Thomas Portelange 2020-04-28 19:21:52 +02:00 committed by GitHub
parent b38c35fe90
commit 2f3c0fc8dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -648,7 +648,7 @@ class Session
*/ */
public function regenerateSessionId() public function regenerateSessionId()
{ {
if (!headers_sent() && session_status() == PHP_SESSION_ACTIVE) { if (!headers_sent() && session_status() === PHP_SESSION_ACTIVE) {
session_regenerate_id(true); session_regenerate_id(true);
} }
} }