public function CookieJar::clearSessionCookies in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php \GuzzleHttp\Cookie\CookieJar::clearSessionCookies()
Discard all sessions cookies.
Removes cookies that don't have an expire field or a have a discard field set to true. To be called when the user agent shuts down according to RFC 2965.
Overrides CookieJarInterface::clearSessionCookies
File
- vendor/
guzzlehttp/ guzzle/ src/ Cookie/ CookieJar.php, line 140
Class
- CookieJar
- Cookie jar that stores cookies an an array
Namespace
GuzzleHttp\CookieCode
public function clearSessionCookies() {
$this->cookies = array_filter($this->cookies, function (SetCookie $cookie) {
return !$cookie
->getDiscard() && $cookie
->getExpires();
});
}