Use $r->err_headers_out instead.

http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_err_headers_out_

Regards,
Bradley C Bailey

> Hi I am using the following: Apache 2.0.52. mod_perl 2.0.3 and Mason 1.69.I
> am trying to set a cookie and do a full http re-direct, in the same breath
> (so to speak). I have this:$r->headers_out->set('Set-Cookie: ' => 
> $testCookie);$m->redirect($location);The Set-Cookie header is not sent.If I
> do this:$r->headers_out->set('Set-Cookie' => 
> $testCookie);$r->headers_out->set('Location' =>
> $location);$m->abort(301);the same problem.What I want to do is send a set
> cookie header and do a redirect. At $location I then check for the cookie
> and I can see if the client is accepting cookies. But the sending of the
> redirect (especially the abort) stops Apache sening the Set-Cookie header.
> Any help gratefully appreciated..Kropotkin
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to