src/Session.php
private static function cfgGetDefaults()
    {
        if (self::$status['cfgInitialized']) {
            return array();
        }
        $defaults = array(
            'cacheExpire'   => \session_cache_expire(),  // int (minutes) session_cache_expire()
                                                        //   only applies when cacheLimiter != 'nocache'
            'cacheLimiter'  => \session_cache_limiter(), // session_cache_limiter()
                                                        //   public | private_no_expire | private | nocache
            'gcMaxlifetime' => (int) \ini_get('session.gc_maxlifetime'),
            'gcProbability' => (int) \ini_get('session.gc_probability'),
            'gcDivisor'     => (int) \ini_get('session.gc_divisor'),
            'savePath'      => (string) \ini_get('session.save_path'),
            'name'          => empty(self::$cfgExplicitlySet['name'])
                                    ? self::cfgGetDefaultName()
                                    : null, // meh, who cares
        );
        if (empty($defaults['savePath']) && \ini_get('session.save_handler') == 'files') {
            $defaults['savePath'] = \sys_get_temp_dir();
        }
        self::$status['cfgInitialized'] = true;
        return \array_diff_key($defaults, self::$cfgExplicitlySet);
    }
private static function cfgGetDefaults()
    {
        if (self::$status['cfgInitialized']) {
            return array();
        }
        $defaults = array(
            'cacheExpire'   => \session_cache_expire(),  // int (minutes) session_cache_expire()
                                                        //   only applies when cacheLimiter != 'nocache'
            'cacheLimiter'  => \session_cache_limiter(), // session_cache_limiter()
                                                        //   public | private_no_expire | private | nocache
            'gcMaxlifetime' => (int) \ini_get('session.gc_maxlifetime'),
            'gcProbability' => (int) \ini_get('session.gc_probability'),
            'gcDivisor'     => (int) \ini_get('session.gc_divisor'),
            'savePath'      => (string) \ini_get('session.save_path'),
            'name'          => empty(self::$cfgExplicitlySet['name'])
                                    ? self::cfgGetDefaultName()
                                    : null, // meh, who cares
        );
        if (empty($defaults['savePath']) && \ini_get('session.save_handler') == 'files') {
            $defaults['savePath'] = \sys_get_temp_dir();
        }
        self::$status['cfgInitialized'] = true;
        return \array_diff_key($defaults, self::$cfgExplicitlySet);
    }
private static function cfgGetDefaults ( ) { if ( self :: $ status [ 'cfgInitialized' ] ) { return array ( ) ; } $ defaults = array ( 'cacheExpire' => \ session_cache_expire ( ) , // int (minutes) session_cache_expire() //   only applies when cacheLimiter != 'nocache' 'cacheLimiter' => \ session_cache_limiter ( ) , // session_cache_limiter() //   public | private_no_expire | private | nocache 'gcMaxlifetime' => ( int ) \ ini_get ( 'session.gc_maxlifetime' ) , 'gcProbability' => ( int ) \ ini_get ( 'session.gc_probability' ) , 'gcDivisor' => ( int ) \ ini_get ( 'session.gc_divisor' ) , 'savePath' => ( string ) \ ini_get ( 'session.save_path' ) , 'name' => empty ( self :: $ cfgExplicitlySet [ 'name' ] ) ? self :: cfgGetDefaultName ( ) : null , // meh, who cares ) ; if ( empty ( $ defaults [ 'savePath' ] ) && \ ini_get ( 'session.save_handler' ) == 'files' ) { $ defaults [ 'savePath' ] = \ sys_get_temp_dir ( ) ; } self :: $ status [ 'cfgInitialized' ] = true ; return \ array_diff_key ( $ defaults , self :: $ cfgExplicitlySet ) ; }
Get default config values

@return array
Get default config values