mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX flushing on non-dev when Session::cookie_secure is true
This commit is contained in:
parent
afd3e3f0d0
commit
a2026add04
2
main.php
2
main.php
@ -138,7 +138,7 @@ $chain
|
|||||||
|
|
||||||
// Otherwise, we start up the session if needed, then check for admin
|
// Otherwise, we start up the session if needed, then check for admin
|
||||||
if (!$canFlush) {
|
if (!$canFlush) {
|
||||||
if(!isset($_SESSION) && (isset($_COOKIE[session_name()]) || isset($_REQUEST[session_name()]))) {
|
if(!isset($_SESSION) && Session::request_contains_session_id()) {
|
||||||
Session::start();
|
Session::start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user