I've had a program for a while that uses cookies and suddenly it doesn't work with IE5 on my Mac... I say my mac because it works on others...
However, cookies from other sites (including this one) get written to IE5 just fine. I have also narrowed down the culprit (I think) to being the expire time argument of the setcookie function.
to get to the root of this problem this is the code that I am using. Other browsers will echo back all 4 cookies, but the IE5 on my mac only stores TestCookie and TestCookie4.
<?
setcookie("TestCookie", "Test Value");
setcookie("TestCookie2", "Test Value2", time()+3600);
setcookie("TestCookie3", "Test Value3", time()+3600, "/");
setcookie("TestCookie4", "Test Value4", "","/");
echo "TestCookie1: $TestCookie <br>
TestCookie2: $TestCookie2 <br>
TestCookie3: $TestCookie3 <br>
TestCookie4: $TestCookie4 <br>";
?>
This code is sitting at http://64.225.120.33/index.php for now (probably untill I get this sorted out) as you'll probably see, it works... it is an adaptation of the code from the php function manual.
Frankly I'm stumped... It is very simple, yes I am reloading the browser to access the cookies (obviously nothing will show up the first time accessing the page) I've reinstalled IE5, nuked the preferences, etc...
???
I would be tempted to blame it on this particular computer, or browser 🙂 but the fact that other cookies (from php sites, and others) write just fine leaves me puzzled.
Chromy