[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mason
Subject:    [Mason]  Headers problem and redirect
From:       "=?UTF-8?Q?J=C3=A9r=C3=B4me_Et=C3=A9v=C3=A9?=" <jerome.eteve () gmail ! com>
Date:       2008-09-29 12:25:34
Message-ID: f516fcd80809290525o1d85f5fr584e90b020e7bec0 () mail ! gmail ! com
[Download RAW message or body]

Hi,

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

 Cheers,

Jerome.



On Mon, Sep 29, 2008 at 12:27 PM, kropotkin <enquiries@mms-oxford.com> 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

jerome@eteve.net



-- 
Jerome Eteve.

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

jerome@eteve.net

-------------------------------------------------------------------------
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic