note 43182 deleted from function.setcookie by nlopess
| From: | nlopess@php.net | Date: | Sat, 12 Jun 2004 13:18:49 +0000 |
| Subject: | note 43182 deleted from function.setcookie by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70970@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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?