src/includes/classes/Core/Utils/Session.php
public function start(string $name = '', array $options = [])
    {
        if (session_status() !== \PHP_SESSION_NONE) {
            throw $this->c::issue('Expecting inactive session.');
        } // Expecting inactive so we can start below.

        if ($name) {
            session_name($name);
        }
        $options += [ // Defaults.
            'use_strict_mode'        => true,
            'use_trans_sid'          => false,

            'sid_length'             => 64,
            'sid_bits_per_character' => 6,

            'use_cookies'            => true,
            'use_only_cookies'       => true,
            'cookie_lifetime'        => 0,
            'cookie_path'            => '/',
            'cookie_secure'          => true,
            'cookie_httponly'        => true,

            'gc_maxlifetime'         => 86400,
            'cache_limiter'          => 'nocache',

            'read_and_close' => false,
        ];
        if (!session_start($options)) {
            throw $this->c::issue('Unable to start session.');
        }
    }
public function start(string $name = '', array $options = [])
    {
        if (session_status() !== \PHP_SESSION_NONE) {
            throw $this->c::issue('Expecting inactive session.');
        } // Expecting inactive so we can start below.

        if ($name) {
            session_name($name);
        }
        $options += [ // Defaults.
            'use_strict_mode'        => true,
            'use_trans_sid'          => false,

            'sid_length'             => 64,
            'sid_bits_per_character' => 6,

            'use_cookies'            => true,
            'use_only_cookies'       => true,
            'cookie_lifetime'        => 0,
            'cookie_path'            => '/',
            'cookie_secure'          => true,
            'cookie_httponly'        => true,

            'gc_maxlifetime'         => 86400,
            'cache_limiter'          => 'nocache',

            'read_and_close' => false,
        ];
        if (!session_start($options)) {
            throw $this->c::issue('Unable to start session.');
        }
    }
Start session.

@since 17xxxx Session utils.

@param string $name    Session name.
@param array  $options Session options.