concrete/src/Cookie/ResponseCookieJar.php
public function getCookieByName($name)
    {
        foreach ($this->cookies as $cookie) {
            if ($cookie->getName() === $name) {
                return $cookie;
            }
        }

        return null;
    }
public function getCookieByName($name)
    {
        foreach ($this->cookies as $cookie) {
            if ($cookie->getName() === $name) {
                return $cookie;
            }
        }

        return null;
    }
public function getCookieByName ( $ name ) { foreach ( $ this -> cookies as $ cookie ) { if ( $ cookie -> getName ( ) === $ name ) { return $ cookie ; } } return null ; }
Get the response cookie given its name.

@param string $name The key the cookie is stored under

@return \Symfony\Component\HttpFoundation\Cookie|null
Get the response cookie given its name .