[1] When should one use err_headers_out and when
should one use headers_out? I know when redirecting
the former is used for Set-Cookie and the later is
used for Location (Practical Mod Perl p. 756), but
what about cache control, p3p, etc? (code fragment
below)
[2] Also, what is the difference between the 'set' and
'add' methods? (Where might I find docs for the
mod_perl methods?)
Many thanks --
TO
my $cookie_out = CGI::Cookie->new(
-name => $cookiename,
-value => $cookievalue,
-path => '/',
-expires => '+14d',
);
$r->err_headers_out->add( 'Set-Cookie' =>
$cookie_out );
my $P3P = q(CP="CURa ADMa DEVa OUR COM NAV INT CNT
STA NID DSP NOI COR");
$r->err_headers_out->add( 'P3P' => $P3P );
$r->err_headers_out->add(
'Cache-Control' =>
'no-store,no-cache,must-revalidate' );
$r->err_headers_out->add( 'Pragma' => 'no-cache'
);
$r->headers_out->set( Location => $url );
return &Apache::REDIRECT;
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com