I found this problem on another forum, and I don't know how to solve it:
I got some problems with the setcookie(); On some browsers the cookie isn't set, or when it is set it can't be removed.
the command i use to set the cookies:
$expire = time() + 606024*365;
setcookie("UserId", $login[1], $expire, "/", $HTTP_HOST,0);
or remove them:
setcookie("UserId", "", time()-3600, "/", $HTTP_HOST,0);
What is the problem? Any cookie experts in da house?
I think cookies are the worst things in PHP :/
Anyway: your code should be working fine.. Are you printing some date in PHP/HTML/Whatever before you do the cookies?
The code starts with php no spaces or anything in frond of them.. This problem i got since php 4. Php3 was doing cookies very nicely, but all the problems started with PHP4 that some cookies aren't set that well... If you maybe allready noticed, a lot of things on this website work with cookies...
Hmmm... And there are no errors on screen?
You don't print anything with PHP before you set the cookies? (so not an 'echo', 'print', 'header', etc command)
I know, if you allready send text or even a space, you get a error from PHP. But the problem is that on some computers the cookies are set and can“t be removed anymore.. and on other computer work perfectly.. i think this is a bug of php. Not the scripting... So maybe i done something wrong in my setcookie(); ...