private function CookieJar::removeCookieIfEmpty in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php \GuzzleHttp\Cookie\CookieJar::removeCookieIfEmpty()
If a cookie already exists and the server asks to set it again with a null value, the cookie must be deleted.
Parameters
SetCookie $cookie:
1 call to CookieJar::removeCookieIfEmpty()
- CookieJar::setCookie in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ CookieJar.php - Sets a cookie in the cookie jar.
File
- vendor/
guzzlehttp/ guzzle/ src/ Cookie/ CookieJar.php, line 266
Class
- CookieJar
- Cookie jar that stores cookies an an array
Namespace
GuzzleHttp\CookieCode
private function removeCookieIfEmpty(SetCookie $cookie) {
$cookieValue = $cookie
->getValue();
if ($cookieValue === null || $cookieValue === '') {
$this
->clear($cookie
->getDomain(), $cookie
->getPath(), $cookie
->getName());
}
}