chen_chen
01-05-2004, 08:11 AM
The setCookie(name, value, expires, path, domain, secure) method from http://www.webreference.com/js/column8/functions.html doesn't work with Netscape 4.75, if you specify "path" or "domain" variables. For example, the following JavaScript code doesn't save any cookie with name "mNC-region" with browser Netscape 4.75:
*****************************
var now = new Date();
var path = "/";
var domain = "nokia.com";
setCookie("mNC-region", r.options[r.selectedIndex].value, now, path, domain, null);
*****************************
With IE5.5/6 & Netscape7, the above code works fine. I wonder is it NS4.75's security restriction prevent it from working, or there is some other ways of saving cookie with domain/path information? Anybody knows this issue?
Thanks in advance!
*****************************
var now = new Date();
var path = "/";
var domain = "nokia.com";
setCookie("mNC-region", r.options[r.selectedIndex].value, now, path, domain, null);
*****************************
With IE5.5/6 & Netscape7, the above code works fine. I wonder is it NS4.75's security restriction prevent it from working, or there is some other ways of saving cookie with domain/path information? Anybody knows this issue?
Thanks in advance!