I’ve got setcookie() working in every file except one in my code. I’ve dug and dug and can’t seem to find out why.
The only difference is the one I can’t get it to work with is being called by an include function, rather than being posted to.
I’ve tried to get around the whole thing by making a new file getcookie.php and including it at the very top of the file before anything else is called or any output is generated… still, nothing. I’ve moved it to immediately after I could pull the post data, I’ve checked to see if there’s white space somewhere at the top of the file, anything to cause the setcookie to fail, and nothing.
It’s literally the same line of code in all the files that work, and in the file that doesn’t work.
Any ideas as to why it would work fine in the *same place