From e42d1412ff970ebfbe6644ee63746cfc9c5cbac2 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. --- Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cookie.php b/Cookie.php index e6159da7..b57af034 100644 --- a/Cookie.php +++ b/Cookie.php @@ -296,6 +296,6 @@ public function isHttpOnly() */ public function isExpired() { - return null !== $this->expires && 0 != $this->expires && $this->expires < time(); + return null !== $this->expires && 0 != $this->expires && $this->expires <= time(); } }