This is a bug or misfeature in CGI.pm.  I reported it some time ago on
cpan's bugtracker.
http://rt.cpan.org/Public/Bug/Display.html?id=15065

You can apply the patch from there if you want mod_perl/CGI compatibility,
or you can just set the 'Cookie' header instead of 'Set-cookie' and it
will work.

~ John Williams


On Fri, 13 Oct 2006, RJ Herrick wrote:

> I'm using a Mason::CGIHandler and trying to set multiple cookie headers
> in a single response.
>
> Looking into and toying with HTML::Mason::FakeApache->headers_out->add,
> it seems that multiple identical ('Set-cookie') headers will turn the
> value into an array ref, which it seems is simply sent stringified as
> the value, instead of each value as a separate header. This produces one
> nameless cookie with ARRAY(0xYADDDDA) as the value instead of two
> distinct cookies.
>
> RJ Herrick
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to