diff --git a/Core/Frameworks/Flake/Framework.php b/Core/Frameworks/Flake/Framework.php index 9f88bd1..73f6b9d 100644 --- a/Core/Frameworks/Flake/Framework.php +++ b/Core/Frameworks/Flake/Framework.php @@ -184,7 +184,9 @@ class Framework extends \Flake\Core\Framework { if (!\Flake\Util\Tools::isCliPhp()) { ini_set("html_errors", true); - session_start(); + if (session_status() === PHP_SESSION_NONE) { + session_start(); + } if (!isset($_SESSION['CSRF_TOKEN'])) { $_SESSION['CSRF_TOKEN'] = bin2hex(openssl_random_pseudo_bytes(20)); }