Skip to content

Commit

Permalink
Added 'session_start_options' to ./config/app-settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed May 23, 2024
1 parent 635d0c7 commit de774a5
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions config/app-settings-dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de774a5

Please sign in to comment.