note 43182 added to function.setcookie

From: Date: Sat, 12 Jun 2004 09:59:02 +0000
Subject: note 43182 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-70961@lists.php.net to get a copy of this message
I'm experiencing the problem mentioned earlier about cookies not setting, but only in internet explorer. It worked perfectly at first but then it stopped. All my scripts work in Netscape. I'm running them on an other server, not my own computer. The strange part is that they work on other computers in IE but not mine. So I thought it was some proprty in IE that wasn't set correctly but I have tried every possibly way, accepting all cookies, turning of my firewall... Could the problem be something with the server? this is the script: <?php setcookie('test', yes, time() + 300); echo $_COOKIE['test']; ?> the first time it loads it shows nothing, but the next it should echo yes shouldn't it? it does this in netscape but not IE. so do anybody have any ideas? ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43182 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43182&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43182&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70961) next »