mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2346 from hafriedlander/fix/flush_when_secure
FIX flush when secure
This commit is contained in:
commit
c461ed51d6
2
main.php
2
main.php
@ -138,7 +138,7 @@ $chain
|
||||
|
||||
// Otherwise, we start up the session if needed, then check for admin
|
||||
if (!$canFlush) {
|
||||
if(!isset($_SESSION) && (isset($_COOKIE[session_name()]) || isset($_REQUEST[session_name()]))) {
|
||||
if(!isset($_SESSION) && Session::request_contains_session_id()) {
|
||||
Session::start();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user