Welcome Guest, Not a member yet? Register   Sign In
Cookie and other headers not send
#1

(This post was last modified: 12-08-2019, 09:56 AM by XTAZ.)

Hello!

Code:
PHP Code:
set_cookie([
    'name'   => 'cookie',
    'value'  => 'value'
]);

return 
redirect()->to('/'); 
Cookies not send. For send cookie I must add before redirect $this->response->send();

In my opinion, cookie should send without it.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB