Re: Apache::Cookie

[prev] [thread] [next] [Date index for 2004/11/11]

From: Joe Schaefer
Subject: Re: Apache::Cookie
Date: 16:16 on 11 Nov 2004
Arshavir Grigorian <ag@xxxxx.xxx> writes:

> # WORKS
> my $cookie = $ticket->cookie()->as_string();
> $r->err_headers_out->add('Set-Cookie' => $cookie);
> 
> # DOES NOT WORK            $ticket->cookie()->bake();
> where $ticket->cookie() is an Apache::Cookie object. This is
> the first thing in the response and is followed by:
> $r->headers_out->set(Location => '/path/'); 
> return Apache::REDIRECT;.
> 
> Beside the fact that libapreq2 is still in development,
> is there a problem with how I am using the bake() method? Thanks in
> advance. 

libapreq2 is currently using $r->headers_out instead
of $r->err_headers_out, which is why you're not seeing the
cookie on your redirect response.  I think the consensus
is that this is a bug in libapreq2-2.04, but I haven't seen
any other apreq committers weigh in on the subject, so
I'm not sure.

        -- 
        Joe Schaefer


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Apache::Cookie
Arshavir Grigorian 16:24 on 09 Nov 2004

Re: Apache::Cookie
Joe Schaefer 16:16 on 11 Nov 2004

Re: Apache::Cookie
Geoffrey Young 19:00 on 11 Nov 2004

Re: Apache::Cookie
Arshavir Grigorian 22:28 on 11 Nov 2004

Re: Apache::Cookie
___cliff rayman___ 22:57 on 11 Nov 2004

Re: Apache::Cookie
Geoffrey Young 01:18 on 12 Nov 2004

Re: Apache::Cookie
Arshavir Grigorian 15:54 on 12 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52