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.