On Fri, Sep 05, 2003 at 10:13:36, Geoffrey Young said...
> actually, the return value is entirely ignored in Registry scripts - that's
> why we need the $r->status hack, which is not needed (or desired) in
> handlers. if you returned SERVER_ERROR it would still work, so long as you
> set $r->s
Michael wrote:
On Wed, Sep 03, 2003 at 09:42:00, Garrett Goebel said...
And gives the following recipe:
Example A-3. redirect_cookie.pl
use Apache::Constants qw(REDIRECT OK);
my $r = shift;
# prepare the cookie in $cookie
$r->err_headers_out->add('Set-Cookie' => $cookie
On Wed, Sep 03, 2003 at 09:42:00, Garrett Goebel said...
>And gives the following recipe:
>
> Example A-3. redirect_cookie.pl
> use Apache::Constants qw(REDIRECT OK);
> my $r = shift;
> # prepare the cookie in $cookie
> $r->err_headers_out->add('Set-Cookie' => $coo
Garrett Goebel wrote:
Geoffrey Young wrote:
> > That's when you use Apache::compat, doing the mp1 syntax.
> > In mp2-speak that would be:
> >
> > $r->err_headers_out->add('Set-Cookie' => $packed_cookie);
> > $r->headers_out->set('Location' => $url);
> > $r->status(REDIRECT);
> >
> >
Title: RE: $r->headers_out Location and Set-Cookie
Geoffrey Young wrote:
> > That's when you use Apache::compat, doing the mp1 syntax.
> > In mp2-speak that would be:
> >
> > $r->err_headers_out->add('Set-Cookie' => $packed_cookie);
>
--
Ahh, didn't know that.. Thanks Stas!
-Chris
- Original Message -
From: "Stas Bekman"
To: "Chris Faust"
Cc: ;
Sent: Sunday, August 10, 2003 2:37 PM
Subject: Re: $r->headers_out Location and Set-Cookie
> Chris Faust wrote:
> > I haven't h
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 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
Ahh, didn't know that.. Thanks Stas!
-Chris
- Original Message -
From: "Stas Bekman" <[EMAIL PROTECTED]>
To: "Chris Faust" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, August 10, 2003 2:37 PM
Sub
Stas Bekman wrote:
Chris Faust wrote:
I haven't had any problems setting a cookie and redirecting on MP2 by
using
the below
$r->err_headers_out->add('Set-Cookie' => $packed_cookie);
$r->header_out('Location' => $url);
$r->status(REDIRECT);
$r->send_http_header;
That's when you use Apac
Chris Faust wrote:
I haven't had any problems setting a cookie and redirecting on MP2 by using
the below
$r->err_headers_out->add('Set-Cookie' => $packed_cookie);
$r->header_out('Location' => $url);
$r->status(REDIRECT);
$r->send_http_header;
That's when you use Apache::compat, doing the mp
On Sat, 9 Aug 2003, gerard uolaquetalestem wrote:
>
> I have the next problem, i am in page A that 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.
"gerard uolaquetalestem " <[EMAIL PROTECTED]> writes:
[...]
> But exactly what's the difference between err_headers_out and
> headers_out? I understand that the first is related with an error message
> sended by headers, but i mean, really what does apache make different?
Here's a straightforw
That's when you use Apache::compat, doing the mp1 syntax. In mp2-speak
that would be:
$r->err_headers_out->add('Set-Cookie' => $packed_cookie);
$r->headers_out->set('Location' => $url);
$r->status(REDIRECT);
notice that you don't need to call $r->send_http_header, it doesn't
exist in mp2.
I haven't had any problems setting a cookie and redirecting on MP2 by using
the below
$r->err_headers_out->add('Set-Cookie' => $packed_cookie);
$r->header_out('Location' => $url);
$r->status(REDIRECT);
$r->send_http_header;
-Chris
- Original Message -
From: "gerard uolaquetales
14 matches
Mail list logo