Skip to content

Commit 9d187c0

Browse files
committed
Adjust expired range check
Include current second when deciding if cooke has expired.
1 parent 9041ec3 commit 9d187c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/BrowserKit/Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,6 @@ public function isHttpOnly()
296296
*/
297297
public function isExpired()
298298
{
299-
return null !== $this->expires && 0 != $this->expires && $this->expires < time();
299+
return null !== $this->expires && 0 != $this->expires && $this->expires <= time();
300300
}
301301
}

0 commit comments

Comments
 (0)