Hi,

 try $r->err_headers_out->add instead of  $r->headers_out .

 Cheers,

Jerome.



On Mon, Sep 29, 2008 at 12:27 PM, kropotkin <[EMAIL PROTECTED]> wrote:
> 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
> ________________________________
> View this message in context: Headers problem and redirect
> Sent from the Perl Mason - Users mailing list archive at Nabble.com.
>
> -------------------------------------------------------------------------
> 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
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
>



--
Jerome Eteve.

Chat with me live at http://www.eteve.net

[EMAIL PROTECTED]



-- 
Jerome Eteve.

Chat with me live at http://www.eteve.net

[EMAIL PROTECTED]

-------------------------------------------------------------------------
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
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to