protected function setOptions($options)
    {
        $all = [
            'auto_start',
            'cache_limiter',
            'cookie_domain',
            'cookie_httponly',
            'cookie_lifetime',
            'cookie_path',
            'cookie_secure',
            'entropy_file',
            'entropy_length',
            'gc_divisor',
            'gc_maxlifetime',
            'gc_probability',
            'hash_bits_per_character',
            'hash_function',
            'name',
            'referer_check',
            'serialize_handler',
            'use_cookies',
            'use_only_cookies',
            'use_trans_sid',
            'upload_progress.enabled',
            'upload_progress.cleanup',
            'upload_progress.prefix',
            'upload_progress.name',
            'upload_progress.freq',
            'upload_progress.min-freq',
            'url_rewriter.tags'
        ];

        foreach ($all as $key)
        {
            if (!array_key_exists($key, $options))
            {
                $options[$key] = ini_get("session.{$key}");
            }
            else
            {
                ini_set("session.{$key}", $options[$key]);
            }
        }

        return $options;
    }
protected function setOptions($options)
    {
        $all = [
            'auto_start',
            'cache_limiter',
            'cookie_domain',
            'cookie_httponly',
            'cookie_lifetime',
            'cookie_path',
            'cookie_secure',
            'entropy_file',
            'entropy_length',
            'gc_divisor',
            'gc_maxlifetime',
            'gc_probability',
            'hash_bits_per_character',
            'hash_function',
            'name',
            'referer_check',
            'serialize_handler',
            'use_cookies',
            'use_only_cookies',
            'use_trans_sid',
            'upload_progress.enabled',
            'upload_progress.cleanup',
            'upload_progress.prefix',
            'upload_progress.name',
            'upload_progress.freq',
            'upload_progress.min-freq',
            'url_rewriter.tags'
        ];

        foreach ($all as $key)
        {
            if (!array_key_exists($key, $options))
            {
                $options[$key] = ini_get("session.{$key}");
            }
            else
            {
                ini_set("session.{$key}", $options[$key]);
            }
        }

        return $options;
    }
protected function setOptions ( $ options ) { $ all = [ 'auto_start' , 'cache_limiter' , 'cookie_domain' , 'cookie_httponly' , 'cookie_lifetime' , 'cookie_path' , 'cookie_secure' , 'entropy_file' , 'entropy_length' , 'gc_divisor' , 'gc_maxlifetime' , 'gc_probability' , 'hash_bits_per_character' , 'hash_function' , 'name' , 'referer_check' , 'serialize_handler' , 'use_cookies' , 'use_only_cookies' , 'use_trans_sid' , 'upload_progress.enabled' , 'upload_progress.cleanup' , 'upload_progress.prefix' , 'upload_progress.name' , 'upload_progress.freq' , 'upload_progress.min-freq' , 'url_rewriter.tags' ] ; foreach ( $ all as $ key ) { if ( ! array_key_exists ( $ key , $ options ) ) { $ options [ $ key ] = ini_get ( "session.{$key}" ) ; } else { ini_set ( "session.{$key}" , $ options [ $ key ] ) ; } } return $ options ; }
Set all the php session. ini options.

@param string[] $options
@return string[]
Set all the php session . ini options .