I'd like to thank everyone for their help - the problem is now fixed. For the sake of others with this problem, here's what was going on:

For some reason, while the browser was receiving a Cookie (I turned on the "Warn Me" option), it wouldn't actually save it when I tried to send a Hash. I fixed that by sending 2 cookies, each with a simple scalar value.

However, the other problem was that while the CGI docs claim that if the "path" parameter is left out it gets set to "/" (allowing all your scripts access to the cookie), I found that it actually set it to the full script path (which didn't work for me since I was using 2 scripts). I had to manually set to path to "/".

These were both solutions I tried before posting, but I guess that it wasn't at the same time. And while no one actually literally suggested this solution, some of the advice prevented other bugs from cropping up. Thanks again!

In reply to PROBLEM FIXED by quill
in thread Crashing Cookie Code by quill

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.