PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am try set a cookie with setcookie and it works fine but it always return true even if I disable cookies in my browser. So do you know what is happening any to fix this is there a other to check if the cookie got set or am I doing this totally wrong?
Reading the documentation would have told you why it returns 1
If output exists prior to calling this function, setcookie() will fail and return FALSE. If setcookie() successfully runs, it will return TRUE. This does not indicate whether the user accepted the cookie.