I have a script that writes a cookie and it also lists the info about the visitor. I have a simple script that also writes whether or not cookies are enabled.
=============
if ($HTTP_COOKIE != "") {
$CookieOn = "Yes";
}
if ($HTTP_COOKIE=="") {
$CookieOn = "No";
}
However, the above script functions differently in IE and Netscape.
In IE 6.0, it works correctly, reporting properly and writing properly.
In NS 4.7, it always reports that cookies are off, even when cookies are on. When cookies are disabled, it also reports that cookies are off.
Can someone explain what is happening? Do I need to use a differnt "if" statment variable for NS instead of $HTTP_COOKIE ? If so, which one?
Thanks.