perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sergeant <>
Subject Re: $r->headers_out Location and Set-Cookie
Date Sat, 09 Aug 2003 17:29:34 GMT
On Saturday, Aug 9, 2003, at 15:26 Europe/London, Nick Tonkin wrote:

> On Sat, 9 Aug 2003, gerard uolaquetalestem  wrote:
>> I have the next problem, i am in page A that <form> points to page B, 
>> that is
>> a modperl2 handler.
>> This handler makes a job and decides to send a cookie to the browser, 
>> and
>> after to redirect to the same page A who is ready to catch the cookie.

> Yep. You need $r->err_headers_out->{'Location'} and you could change 
> to $r->err_headers_out->{'Set-Cookie'} too.

Even that doesn't work. You need to do a Refresh, because that's the 
only way the browser will register the cookie - Set-Cookie + Location 
is not compatible (generally - some browsers will accept the cookie).


View raw message