Trying to get IE to take a cookie in either an error header or a
standard header has just been driving me insane tonight. After every
possible iteration I ended up with the following and a redirect. Note
that $r->header_out() worked without a redirect as well.
$r->err_header_out('Set-cookie' => "AF_SID=".$session{ _session_id
}."; path=/; expires=Tue, Jun 23 2021 10:26:12 GMT; domain=.spa.com"
);
The following did _not_ work for IE but did work for every other
browser I tested ( NS 4.5/5 on Win/Linux/Mac ).
$r->err_headers_out->add('Set-cookie' => "AF_SID=".$session{
_session_id }."; path=/; expires=Tue, Jun 23 2020 10:26:12 GMT;
domain=.spa.com" );
$r->err_headers_out->{ 'Set-cookie' } = "AF_SID=".$session{
_session_id }."; path=/; expires=Tue, Jun 23 2020 10:26:12 GMT;
domain=.spa.com;" ;
So the question is, why does IE accept a single header but not
multiple headers? I did not see this anywhere in the mailing list of
the Eagle book and have never really come across this issue before.
Just looking for a reason so that I am not treating this like some mystery.
John-