I'm having the same problem here. With Netscape 6 release 2 and Mozilla M17, when I set the cookie using this code:
$time = mktime()+600;
$date = date("l, d-M-y H:i:s", ($time));
setcookie("TestKey","Test Value","$time","/","",0);
the expire date is correct. However, if I use this code with IE 5.0, the cookie won't get set at all. However, if I use the following code as suggested by some at php.net:
$time = mktime()+600;
$date = date("l, d-M-y H:i:s", ($time));
setcookie("TestKey","Test Value","date GMT","/","",0);
The cookie will be set in all 3. HOWEVER, Netscape and Mozilla show the cookie expire as "at end of session." I can't find the file for IE's cookie, and I don't thnk it's setting one. If I close IE and open it back up immidatoly, it cannot see the cookie (ie, it doesn't exsist.) So, apparntly, it is also setting the expire time for end of session.
Anyone have any advice on this?
Thankx,
Johnny Allen