public function read($path = null)
    {
        if ($this->isExpanded === false) {
            $this->value = $this->_expand($this->value);
        }

        if ($path === null) {
            return $this->value;
        }

        return Hash::get($this->value, $path);
    }
public function read($path = null)
    {
        if ($this->isExpanded === false) {
            $this->value = $this->_expand($this->value);
        }

        if ($path === null) {
            return $this->value;
        }

        return Hash::get($this->value, $path);
    }
public function read ( $ path = null ) { if ( $ this -> isExpanded === false ) { $ this -> value = $ this -> _expand ( $ this -> value ) ; } if ( $ path === null ) { return $ this -> value ; } return Hash :: get ( $ this -> value , $ path ) ; }
Read data from the cookie

This method will expand serialized complex data,
on first use.

@param string $path Path to read the data from
@return mixed
Read data from the cookie