mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixes warning if session is not active
See issue https://github.com/silverstripe/silverstripe-framework/issues/9496
This commit is contained in:
parent
28ba4f701a
commit
b38c35fe90
@ -648,7 +648,7 @@ class Session
|
||||
*/
|
||||
public function regenerateSessionId()
|
||||
{
|
||||
if (!headers_sent()) {
|
||||
if (!headers_sent() && session_status() == PHP_SESSION_ACTIVE) {
|
||||
session_regenerate_id(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user