1.
\session_set_cookie_params(['foo' => 'bar']);
results in
Argument '1' passed to session_set_cookie_params() is expected to be of type int, array given
https://www.php.net/manual/en/function.session-set-cookie-params.php
Alternative signature available as of PHP 7.3.0:
session_set_cookie_params(array $lifetime_or_options): bool
2.
If a discussion is "solved" and there is a new issue to that topic: What is preferred? Open a new discussion or answering to the "solved" one?