diff --git a/config/app-settings-dist.php b/config/app-settings-dist.php index ec42f2a..afc4e5b 100644 --- a/config/app-settings-dist.php +++ b/config/app-settings-dist.php @@ -59,8 +59,55 @@ 'log_renderer_class' => \SlimMvcTools\LogErrorRenderer::class, 'xml_renderer_class' => \SlimMvcTools\XmlErrorRenderer::class, + //////////////////////////////////////////////////////////////////////////// + // Options for PHP's session_start https://www.php.net/manual/en/function.session-start.php + // See https://www.php.net/session.configuration for more info about these options. + // + // You can pass these options to any part of your code that calls session_start + // \SlimMvcTools\Controllers\BaseController uses these options in all calls to + // session_start within it. + // + // Alternatively, you could configure all these options except read_and_close + // in ./config/ini-settings.php by calling ini_set for each option you want + // to configure. + // + // This setting is optional and you don't need to configure it if you don't + // really need to. + //////////////////////////////////////////////////////////////////////////// + 'session_start_options' => [ +// "cache_expire" => "180", +// "cache_limiter" => "nocache", +// "cookie_domain" => "", +// "cookie_httponly" => "0", +// "cookie_lifetime" => "0", +// "cookie_path" => "/", +// "cookie_samesite" => "", +// "cookie_secure" => "0", +// "gc_divisor" => "100", +// "gc_maxlifetime" => "1440", +// "gc_probability" => "1", +// "lazy_write" => "1", +// "name" => "PHPSESSID", +// "read_and_close" => "0", +// "referer_check" => "", +// "save_handler" => "files", +// "save_path" => "", +// "serialize_handler" => "php", +// "sid_bits_per_character" => "4", +// "sid_length" => "32", +// "trans_sid_hosts" => $_SERVER['HTTP_HOST'], +// "trans_sid_tags" => "a=href,area=href,frame=src,form=", +// "use_cookies" => "1", +// "use_only_cookies" => "1", +// "use_strict_mode" => "0", +// "use_trans_sid" => "0", + ], + //////////////////////////////////////////////////////////////////////////// // add other stuff like DB credentials, api keys, etc below + //////////////////////////////////////////////////////////////////////////// + + //////////////////////////////////////////////////// // End of Your App's Environment Specific Settings