I've been working on a project on another operating system and it works fine there. I'm now on Arch Linux and now the project isn't working. The problem seems to be that my browser is not accepting a cookie.
I'm setting it with
setcookie('name','value', 0, '/', '', 0, true);
Firebug shows the cookie being sent and the function is returning true. But it the cookie isn't being used. This is on localhost.
Edit: I've also tried many combinations, like:
setcookie('test', 'value');
setcookie('test', 'value', 0, '', '', 0, true);
None seem to work.
If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).or the secure flag[bool]localhostor127.0.0.1?