Hmmm... I had read that thread; none of the postings
address setting anything beyond a cookie.
I'm looking for advice on something like this
sub cookie_and_redirect {
my ( $r, $cookie, $dest ) = @_;
$r->headers_out->set( Location => $dest );
$r->headers_out->add( 'P3P' => P3P_CP );
$r->headers_out->add(
'Cache-Control' =>
'no-store,no-cache,must-revalidate' );
$r->headers_out->add( 'Pragma' => 'no-cache' );
$r->err_headers_out->add( 'Set-Cookie' => $cookie
);
return &Apache::REDIRECT;
}
or, should it be like this
sub cookie_and_redirect {
my ( $r, $cookie, $dest ) = @_;
$r->headers_out->set( Location => $dest );
$r->err_headers_out->add( 'P3P' => P3P_CP );
$r->err_headers_out->add(
'Cache-Control' =>
'no-store,no-cache,must-revalidate' );
$r->err_headers_out->add( 'Pragma' => 'no-cache'
);
$r->err_headers_out->add( 'Set-Cookie' => $cookie
);
return &Apache::REDIRECT;
}
and more importantly, why? I am interesting in
learning the difference between the two method calls.
As I still don't understand why in all the examples
given the Location param goes in a header_out, while
everything else goes in a err_header_out.
Many thanks
TO
--- Ged Haywood <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> On Sat, 18 Oct 2003, Tofu Optimist wrote:
>
> > [1] When should one use err_headers_out and when
> > should one use headers_out?
>
>
http://www.mail-archive.com/[EMAIL PROTECTED]/msg36041.html
>
> > [2] Also, what is the difference between the 'set'
> and
> > 'add' methods? (Where might I find docs for the
> > mod_perl methods?)
>
> man mod_perl
>
> 73,
> Ged.
>
>
>
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com