think icon indicating copy to clipboard operation
think copied to clipboard

\think\Response.php line 158 $this->cookie->save(); 报错 cookie 为null

Open mgzhenhong opened this issue 6 years ago • 1 comments

app 中继承 app\BaseController, 重写 initialize

$response = redirect(url('user/login') -> build());
$response -> send();

报错 Call to a member function save() on null

[0] Error in Response.php line 158

$this->cookie->save();

mgzhenhong avatar Jul 21 '19 04:07 mgzhenhong

用法不当

liu21st avatar Jul 21 '19 05:07 liu21st