FIX flushing on non-dev when Session::cookie_secure is true

This commit is contained in:
Hamish Friedlander 2013-08-21 09:50:07 +12:00
parent afd3e3f0d0
commit a2026add04

View File

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