M
Michi Henning
I'm running the following code in Safari 2.0.4:
document.cookie = 'MyCookie=1';
if(document.cookie == '')
alert('document.cookie is empty!');
document.cookie always returns the empty string, no matter what I do.
I checked the cookie settings in Safari->Preferences->Security. Even
when I set cookies to be always accepted, document.cookie still returns
the empty string.
Needless to say, the same code works just fine with a various other
browsers.
I'd be most grateful for any hints as to what I'm doing wrong.
Thanks,
Michi.
document.cookie = 'MyCookie=1';
if(document.cookie == '')
alert('document.cookie is empty!');
document.cookie always returns the empty string, no matter what I do.
I checked the cookie settings in Safari->Preferences->Security. Even
when I set cookies to be always accepted, document.cookie still returns
the empty string.
Needless to say, the same code works just fine with a various other
browsers.
I'd be most grateful for any hints as to what I'm doing wrong.
Thanks,
Michi.