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 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.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to