/** * Get the cookie Id (name+domain+path) * * @param Header\SetCookie|Header\Cookie $cookie * @return string|bool */ protected function getCookieId($cookie) { if ($cookie instanceof Header\SetCookie || $cookie instanceof Header\Cookie) { return $cookie->getName() . $cookie->getDomain() . $cookie->getPath(); } return false; }