We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb00ad commit 12989c4Copy full SHA for 12989c4
src/Cookie.php
@@ -153,7 +153,7 @@ public function asString()
153
$str .= urlencode($this->value);
154
}
155
if ($this->expire > 0) {
156
- $str .= '; expires='.gmdate("D, d-M-Y H:i:s T", $this->expire);
+ $str .= '; expires='.gmdate("D, d-M-Y H:i:s T", time () + $this->expire);
157
158
if ($this->path) {
159
$str .= '; path='.$this->path;
0 commit comments