session_set_cookie_params
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Set the session cookie parameters
<?php session_set_cookie_params( int $lifetime_or_options, ?string $path = null, ?string $domain = null, ?bool $secure = null, ?bool $httponly = null): bool