0, 'path' => '/', 'domain' => '', 'secure' => $isSecure, 'httponly' => true, 'samesite' => 'Lax', ]); if (session_status() !== PHP_SESSION_ACTIVE) { session_start(); } foreach ([ storage_path(), storage_path('system'), storage_path('users'), ] as $directory) { if (!is_dir($directory)) { mkdir($directory, 0775, true); } }