What is happening is that only cookie is actually sent to the browser, and I'd bet it's either the last or first one depending on how header_props is implemented. The solution is header_add() - you might have to upgrade your CGI::Application installation since it's a recent addition.
header_add() # add or replace the 'type' header $webapp->header_add( -type => 'image/png' ); - or - # add an additional cookie $webapp->header_add(-cookie=>[$extra_cookie]); The header_add() method is used to add one or more headers to the +outgoing response headers. The parameters will eventuallly be passed +on to the CGI.pm header() method, so refer to the CGI docs for exact +usage details. Unlike calling header_props(), header_add() will preserve any exis +ting headers. If a scalar value is passed to header_add() it will rep +lace the existing value for that key. If an array reference is passed as a value to header_add(), values + in that array ref will be appended to any existing values values for + that key. This is primarily useful for setting an additional cookie +after one has already been set.

In reply to Re: Cookies with CGI::Application by drewbie
in thread Cookies with CGI::Application by Anonymous Monk

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.