Merge pull request #9499 from lekoala/patch-16

This commit is contained in:
Guy Marriott 2020-04-28 12:23:28 -07:00 committed by GitHub
commit 693c4cde46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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