diff --git a/system/Cookie/Cookie.php b/system/Cookie/Cookie.php index 22c01a7daa3c..2b46a7613479 100644 --- a/system/Cookie/Cookie.php +++ b/system/Cookie/Cookie.php @@ -461,12 +461,14 @@ public function withExpired() /** * {@inheritDoc} + * + * @see https://httpwg.org/http-extensions/draft-ietf-httpbis-rfc6265bis.html#section-4.1.2.1 */ public function withNeverExpiring() { $cookie = clone $this; - $cookie->expires = time() + 5 * YEAR; + $cookie->expires = time() + 400 * DAY; return $cookie; }