michellem has asked for the wisdom of the Perl Monks concerning the following question:
I've been using the standard method for setting cookies using perl/cgi:
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?$logincookie = $co->cookie ( -name=>'ST', -value=>'test', -expires=>'+30d' -path=>'/', -domain=>'www.strategictechnology.net', -secure=>0 ); print $co->header(-cookie=>$logincookie);
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom