I am trying to set a cookie with an expire time of zero (0), so that the cookie will remain active until the user closes his browser (at which point the cookie expires).
In the past I've always been able to accomplish this by doing:
setcookie("name",$value);
however, It now seems that IE5.50.4134 doesn't like this. Now, I HAVE to set an expire time in order for the cookie to be set. I tried using an expire time of: time()+0, but all that did was set a cookie that expired instantly ... I have tried all of the above combinations bot with and without specifying the domian and path ... It ONLY works if I have a positive expire time ...
So please help me out here, how do I set a cookie that expires when the browser is closed, and not before (and not after)???????
Thank you SOOOO much for any help,
Brad
monroe@bluegrass.net