From 9d187c0d1a9ab33489162777d51ac9f798175cb1 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 30 Sep 2020 17:28:20 +0200 Subject: [PATCH] Adjust expired range check Include current second when deciding if cooke has expired. --- src/Symfony/Component/BrowserKit/Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/BrowserKit/Cookie.php b/src/Symfony/Component/BrowserKit/Cookie.php index e6159da74d..b57af03448 100644 --- a/src/Symfony/Component/BrowserKit/Cookie.php +++ b/src/Symfony/Component/BrowserKit/Cookie.php @@ -296,6 +296,6 @@ class Cookie */ public function isExpired() { - return null !== $this->expires && 0 != $this->expires && $this->expires < time(); + return null !== $this->expires && 0 != $this->expires && $this->expires <= time(); } }