I've been using the standard method for setting cookies using perl/cgi:
$logincookie = $co->cookie
(
-name=>'ST',
-value=>'test',
-expires=>'+30d'
-path=>'/',
-domain=>'www.strategictechnology.net',
-secure=>0
);
print $co->header(-cookie=>$logincookie);
And I'm trying to read the cookie using javascript (via document.cookie), but although it is clear that the cookie is set (looking at the magic cookie file), a javascript function can't read it (document.cookie is empty). What am I doing wrong?
Originally posted as a Categorized Question.