1
0
mirror of https://github.com/silverstripe/silverstripe-framework synced 2024-10-22 14:05:37 +02:00

Merge pull request 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

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);
}
}