On 09-May-2000 Perrin Harkins wrote:
> Bill Desjardins wrote:
>> I checked the archives and the guide to no avail, so here goes. I am
>> having trouble setting a cookie in the header and then doing a
>> redirect. The cookies are working fine every where, but if I add a cookie
>> to $r->headers_out->add(), set a location via $r->headers_out(Location =>
>> 'newrui') and return REDIRECT, I get no cookies being set. is this a bug,
>> feature, or a feature of the wonderful world of incompatible browsers?
>
> This is a known problem with certain browsers. The cookie will get set,
> but will not get returned on this first redirect. You could try putting
> the cookie data in a query string and looking for it there when it isn't
> in the cookie.
>
> - Perrin
Here's how I got it work to flawlessly (probably not the 'correct' way of doing
it, though :)
$r->send_cgi_header(<<EOF);
Set-cookie: admin_id=0; path=/
Set-cookie: admin_key=0; path=/
Location: /
EOF
return DONE;
Regards,
Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
[EMAIL PROTECTED]