mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update src/Control/Session.php
Co-Authored-By: Guy Marriott <guy.the.person@gmail.com>
This commit is contained in:
parent
b38c35fe90
commit
2f3c0fc8dd
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user