Commit bf73fd81 by SonicGD

Set expire to null so CookieCollection::has work

parent 58b4c193
...@@ -1190,6 +1190,7 @@ class Request extends \yii\base\Request ...@@ -1190,6 +1190,7 @@ class Request extends \yii\base\Request
$cookies[$name] = new Cookie([ $cookies[$name] = new Cookie([
'name' => $name, 'name' => $name,
'value' => @unserialize($value), 'value' => @unserialize($value),
'expire'=>null
]); ]);
} }
} }
...@@ -1198,6 +1199,7 @@ class Request extends \yii\base\Request ...@@ -1198,6 +1199,7 @@ class Request extends \yii\base\Request
$cookies[$name] = new Cookie([ $cookies[$name] = new Cookie([
'name' => $name, 'name' => $name,
'value' => $value, 'value' => $value,
'expire'=>null
]); ]);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment