I apologize in advance for what will be a vague, hand-wave-y sort of answer... Oh wait, no. This should be concise. I found the answer from HTTP::Cookie's POD.

My guess is that you're setting a cookie for the domain "everything2.org", where you should be setting it for ".everything2.org". I had this same problem with a script I was running, and it took me a while to find the answer :

From the pod, look at the cookie spec sheet. this is from the section marked

domain=DOMAIN_NAME
Only hosts within the specified domain can set a cookie for a domain a +nd domains must have at least two (2) or three (3) periods in them to + prevent domains of the form: ".com", ".edu", and "va.us". Any domain + that fails within one of the seven special top level domains listed +below only require two periods. Any other domain requires at least th +ree. The seven special top level domains are: "COM", "EDU", "NET", "O +RG", "GOV", "MIL", and "INT".

In reply to Re: Bug in HTTP::Cookies? by boo_radley
in thread Bug in HTTP::Cookies? by donfreenut

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.