General trouble-shooting tips:
  1. Sanity dictates that if "nothing changed", and something broke, then something was changed.
  2. Occam uses his Razor more often than not.
  3. For the sake of argument, assume the code is ok (but see rule 1). So that means something is wrong with the environment. Check that first, for example, check in your browser that the cookie really is being set.
  4. If the environment really looks ok, check it again.
  5. If it still looks ok, have someone else check it.
  6. If it still looks ok, are you sure there is no loose nut on the keyboard, and that PEBKAC does not apply? Also check for ID-ten-T errors.
  7. If you still can't find a problem (and still bearing in mind rule 1), check the code. Use general debugging techniques to narrow down the problem. Run your unit tests and verify they still complete successfully.
  8. Avoid absolute statements like "the problem must be with the frobnitz confrogulator". These blind you to avenues of investigation you might otherwise explore.
Given the nature of your problem, and if you are really sure the code was not changed, most likely something with the browser or the user is not what you expect. You would need to post more of your code, including the login.pl script, for anyone here to be able to debug it.

Update: added absolute statements tip.


In reply to Re: Problem with cookies by moot
in thread Problem with cookies by cranberry13

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.