protected static function _defaultConfig($name)
    {
        $defaults = [
            'php' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                ]
            ],
            'cake' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                    'session.serialize_handler' => 'php',
                    'session.use_cookies' => 1,
                    'session.save_path' => TMP . 'sessions',
                    'session.save_handler' => 'files'
                ]
            ],
            'cache' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                    'session.use_cookies' => 1,
                    'session.save_handler' => 'user',
                ],
                'handler' => [
                    'engine' => 'CacheSession',
                    'config' => 'default'
                ]
            ],
            'database' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                    'session.use_cookies' => 1,
                    'session.save_handler' => 'user',
                    'session.serialize_handler' => 'php',
                ],
                'handler' => [
                    'engine' => 'DatabaseSession'
                ]
            ]
        ];

        if (isset($defaults[$name])) {
            return $defaults[$name];
        }

        return false;
    }
protected static function _defaultConfig($name)
    {
        $defaults = [
            'php' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                ]
            ],
            'cake' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                    'session.serialize_handler' => 'php',
                    'session.use_cookies' => 1,
                    'session.save_path' => TMP . 'sessions',
                    'session.save_handler' => 'files'
                ]
            ],
            'cache' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                    'session.use_cookies' => 1,
                    'session.save_handler' => 'user',
                ],
                'handler' => [
                    'engine' => 'CacheSession',
                    'config' => 'default'
                ]
            ],
            'database' => [
                'cookie' => 'CAKEPHP',
                'ini' => [
                    'session.use_trans_sid' => 0,
                    'session.use_cookies' => 1,
                    'session.save_handler' => 'user',
                    'session.serialize_handler' => 'php',
                ],
                'handler' => [
                    'engine' => 'DatabaseSession'
                ]
            ]
        ];

        if (isset($defaults[$name])) {
            return $defaults[$name];
        }

        return false;
    }
protected static function _defaultConfig ( $ name ) { $ defaults = [ 'php' => [ 'cookie' => 'CAKEPHP' , 'ini' => [ 'session.use_trans_sid' => 0 , ] ] , 'cake' => [ 'cookie' => 'CAKEPHP' , 'ini' => [ 'session.use_trans_sid' => 0 , 'session.serialize_handler' => 'php' , 'session.use_cookies' => 1 , 'session.save_path' => TMP . 'sessions' , 'session.save_handler' => 'files' ] ] , 'cache' => [ 'cookie' => 'CAKEPHP' , 'ini' => [ 'session.use_trans_sid' => 0 , 'session.use_cookies' => 1 , 'session.save_handler' => 'user' , ] , 'handler' => [ 'engine' => 'CacheSession' , 'config' => 'default' ] ] , 'database' => [ 'cookie' => 'CAKEPHP' , 'ini' => [ 'session.use_trans_sid' => 0 , 'session.use_cookies' => 1 , 'session.save_handler' => 'user' , 'session.serialize_handler' => 'php' , ] , 'handler' => [ 'engine' => 'DatabaseSession' ] ] ] ; if ( isset ( $ defaults [ $ name ] ) ) { return $ defaults [ $ name ] ; } return false ; }
Get one of the prebaked default session configurations.

@param string $name Config name.
@return bool|array
Get one of the prebaked default session configurations .