Adjust expired range check

Include current second when deciding if cooke has expired.
This commit is contained in:
Andreas 2020-09-30 17:28:20 +02:00 committed by Andreas Leathley
parent 9041ec33e3
commit 9d187c0d1a
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}