Netscape and cookies

They have: 447 posts

Joined: Oct 1999

I wrote some scripts that set and use cookies. They work just fine on my webserver but I sent them to a friend and had him install them on his server and the cookies work fine in IE but not in Netscape. One thing i noticed about his webserver which i think is the problem is when you enter the url http://www.organicfusion.com/asylum in the location actually changes to http://organicfusion.com/asylum.

If the cookies are set by http://www.organicfusion.com/cgi-bin/whatever.pl they cant be seen by http://organicfusion.com/cgi-bin/whatever.pl (at least by Netscape) even though its the same file because the domain name has changed.

So can i specify multiple domains in the cookie when im setting it? I tried domain=http://www.organicfusion.com,http://organicfusion.com; which didnt work.

Like I said I think this is the problem, but im not sure...

They have: 447 posts

Joined: Oct 1999

ok, i guess that is not the problem at all. Netscape is not setting the cookie at all it seems, I checked Netscapes cookies.txt file and there are no cookies from this domain, i even deleted the file and tried from scratch.

Here is the cookie being printed to the browser:

Set-Cookie: userName=Robbie; expires=Fri, 31-Dec-2000 00:00:00 GMT; path=/; domain=organicfusion.com;
Set-Cookie: password=69B4dE7Ufun1s; expires=Fri, 31-Dec-2000 00:00:00 GMT; path=/; domain=organicfusion.com;

It works just fine in IE but Netscape will not set the cookie?!?! Cookies are enabled and i have asked friends to try it too and it just doesnt work in Netscape on this server?!?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.