I am facing strange issue, When I use setrawcookie function, I got error 502,
setrawcookie("PVEAuthCookie", $vncproxy['ticket'], 0, "/",'mydomain.com', true);
It's throw me 502 Bad Gateway nginx/1.11.5 error.
I have PHP Version 5.6.40,
Cookie settings, 
Thanks in advance for your help.
I found the issue, It was from nginx
41014 upstream sent too big header while reading response header from upstream,
I update proxy buffering configuration and its works,
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
Thanks @Barmar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With