protected function _load($key)
    {
        $parts = explode('.', $key);
        $first = array_shift($parts);
        if (isset($this->_loaded[$first])) {
            return;
        }
        $cookie = $this->getController()->getRequest()->getCookie($first);
        if ($cookie === null) {
            return;
        }
        $config = $this->configKey($first);
        $this->_loaded[$first] = true;
        $this->_values[$first] = $this->_decrypt($cookie, $config['encryption'], $config['key']);
    }
protected function _load($key)
    {
        $parts = explode('.', $key);
        $first = array_shift($parts);
        if (isset($this->_loaded[$first])) {
            return;
        }
        $cookie = $this->getController()->getRequest()->getCookie($first);
        if ($cookie === null) {
            return;
        }
        $config = $this->configKey($first);
        $this->_loaded[$first] = true;
        $this->_values[$first] = $this->_decrypt($cookie, $config['encryption'], $config['key']);
    }
protected function _load ( $ key ) { $ parts = explode ( '.' , $ key ) ; $ first = array_shift ( $ parts ) ; if ( isset ( $ this -> _loaded [ $ first ] ) ) { return ; } $ cookie = $ this -> getController ( ) -> getRequest ( ) -> getCookie ( $ first ) ; if ( $ cookie === null ) { return ; } $ config = $ this -> configKey ( $ first ) ; $ this -> _loaded [ $ first ] = true ; $ this -> _values [ $ first ] = $ this -> _decrypt ( $ cookie , $ config [ 'encryption' ] , $ config [ 'key' ] ) ; }
Load the cookie data from the request and response objects.

Based on the configuration data, cookies will be decrypted. When cookies
contain array data, that data will be expanded.

@param string|array $key The key to load.
@return void
Load the cookie data from the request and response objects .