After setting two cookies under HTML::Mason::CGIHandler, $r->err_headers_out() only returns the first cookie set, but both cookies are indeed set (after applying a patch to CGI.pm per rt.cpan.org bug ID 15065). When I do the same under HTML::Mason::ApacheHandler, I see both entries.
component: a.html <h1>Calling Component</h1> <pre><% Data::Dumper->Dump([$err_headers_out], [qw(err_headers_out)]) %></pre> <%init> $m->comp('/account/set_cookie.mpl', name=>'test_cookie', value=>1, permanent=>1); $m->comp('/account/set_cookie.mpl', name=>'test2', value=>2, permanent=>1); my $err_headers_out = scalar $r->err_headers_out(); </%init> HTML::Mason::CGIHandler returns: $err_headers_out = bless( { 'Set-Cookie' => 'test_cookie=1; path=/; expires=Sun, 23-Feb-2020 19:43:12 GMT' }, 'HTML::Mason::FakeTable' ); HTML::Mason::ApacheHandler returns: $err_headers_out = bless( { 'Set-Cookie' => 'test_cookie=1; path=/; expires=Sun, 23-Feb-2020 19:33:19 GMT', 'Set-Cookie' => 'test2=2; path=/; expires=Sun, 23-Feb-2020 19:33:19 GMT' }, 'APR::Table' ); ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users