public static function CookieJar::shouldPersist in Auth0 Single Sign On 8.2
Evaluate if this cookie should be persisted to storage that survives between requests.
Parameters
SetCookie $cookie Being evaluated.:
bool $allowSessionCookies If we should persist session cookies:
Return value
bool
2 calls to CookieJar::shouldPersist()
- FileCookieJar::save in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ FileCookieJar.php - Saves the cookies to a file.
- SessionCookieJar::save in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SessionCookieJar.php - Save cookies to the client session
File
- vendor/
guzzlehttp/ guzzle/ src/ Cookie/ CookieJar.php, line 76
Class
- CookieJar
- Cookie jar that stores cookies as an array
Namespace
GuzzleHttp\CookieCode
public static function shouldPersist(SetCookie $cookie, $allowSessionCookies = false) {
if ($cookie
->getExpires() || $allowSessionCookies) {
if (!$cookie
->getDiscard()) {
return true;
}
}
return false;
}