I have tried this but with no success. I'm running NS4.7 on RH6.1. What I
found when I use Apache::Debug::dump() is that if I use a simple string as
the $cookie, the cookie is passed along redirect. However if the $cookie
is an object of CGI::Cookie, it is missing in the redirect request.

Fred Xia

Ken Williams wrote:

> [EMAIL PROTECTED] (Zeqing Xia) wrote:
>
> >Hi,
> >
> >I'm having a problem with setting the cookie in a REDIRECT. Basically,
> >I'm doing this in a handler:
> >
> >    $r->headers_out->add('Set-Cookie' => $cookie);
> >    $r->headers_out->add('Location' => $location);
> >    return REDIRECT;
>
> Try changing to $r->err_headers_out.  Details in the eagle book.
>
>   -------------------                            -------------------
>   Ken Williams                             Last Bastion of Euclidity
>   [EMAIL PROTECTED]                            The Math Forum

Reply via email to