Did you call $r->send_http_header before you returned REDIRECT ? Cookies
reside in the HTTP header, so you need to send it.
Bill Desjardins wrote:
>
> Hi all,
>
> 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?
>
> My setup:
>
> RH Linux 6.1
> mod_perl 1.23
> apache 1.3.12
>
> Thanks,
> /Bill
>
> --
> Bill Desjardins - [EMAIL PROTECTED] - (USA) 305.205.8644
> Unix/Network Administration - Perl/Mod_Perl/DB Development
> http://www.CarRacing.com - Powered by mod_perl!
> Free WebHosting for Race Tracks, Race Teams and Race Shops