Setting cookies, which works like a dream in any version of Netscape, works poorly in MSIE, at least using the following format:
$header = "Content-type: text/html\n\n";
$header = "Set-Cookie: adel=$user_id; expires=09-Sep-99 01:00:00 GMT; path=/;\n"."$header";
In some versions of MSIE, the cookie is never set. In
some, it's set, but with the wrong value. For example, if I use this form element and choose Obscene:
<OPTION VALUE=0>Standard (14.4, 28.8)
<OPTION VALUE=1>Impressive (56K, ISDN)
<OPTION VALUE=2>Obscene (T-1, Cable Modem, T-3)
..in netscape, it works perfectly. In some MSIEs,
I'll get the cookie incorrectly set to Standard.
In other MSIEs, I'll get no cookie at all.
Even in those versions, I know it's possible to set a cookie, because my Apache server sets one.
So how does one set a cookie that's recognized properly
by both NS and MSIE?