class, there is a definition of session options in the constructor using ini_set. Wouldn’t it be possible to add an option to set these fields from an array from config with the session key like this (it would be consistent with other config options):
This offers the benefit of using the configuration of PHP itself and you will always have default values.
To override the configuration, you also can use your configuration file: