730abc3991daf5982a7a5336c5be3831e6e93fec
[mkws-moved-to-github.git] / etc / mod_perl / MyApache2 / CopyCookie.pm
1     package MyApache2::CopyCookie;
2       use Apache2::Filter ();
3       use Apache2::RequestRec ();
4       use APR::Table ();
5
6       use Apache2::Const -compile => qw(OK);
7
8       sub handler {
9           my $f = shift;
10
11           my $cookie = $f->r->headers_out->get('Set-Cookie');
12           $f->r->headers_out->set('X-Set-Cookie', $cookie);
13           return Apache2::Const::OK;
14       }
15       1;
16