src/Authenticator/CookieAuthenticator.php
protected function _createCookie($value)
    {
        $data = $this->getConfig('cookie');

        $cookie = new Cookie(
            $data['name'],
            $value,
            $data['expire'],
            $data['path'],
            $data['domain'],
            $data['secure'],
            $data['httpOnly']
        );

        return $cookie;
    }
protected function _createCookie($value)
    {
        $data = $this->getConfig('cookie');

        $cookie = new Cookie(
            $data['name'],
            $value,
            $data['expire'],
            $data['path'],
            $data['domain'],
            $data['secure'],
            $data['httpOnly']
        );

        return $cookie;
    }
protected function _createCookie ( $ value ) { $ data = $ this -> getConfig ( 'cookie' ) ; $ cookie = new Cookie ( $ data [ 'name' ] , $ value , $ data [ 'expire' ] , $ data [ 'path' ] , $ data [ 'domain' ] , $ data [ 'secure' ] , $ data [ 'httpOnly' ] ) ; return $ cookie ; }
Creates a cookie instance with configured defaults.

@param mixed $value Cookie value.
@return \Cake\Http\Cookie\CookieInterface
Creates a cookie instance with configured defaults .