New
authorMike Taylor <mike@indexdata.com>
Wed, 26 Jun 2013 11:38:33 +0000 (11:38 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 26 Jun 2013 11:38:33 +0000 (11:38 +0000)
etc/mod_perl/MyApache2/CopyCookie.pm [new file with mode: 0644]

diff --git a/etc/mod_perl/MyApache2/CopyCookie.pm b/etc/mod_perl/MyApache2/CopyCookie.pm
new file mode 100644 (file)
index 0000000..730abc3
--- /dev/null
@@ -0,0 +1,16 @@
+    package MyApache2::CopyCookie;
+      use Apache2::Filter ();
+      use Apache2::RequestRec ();
+      use APR::Table ();
+
+      use Apache2::Const -compile => qw(OK);
+
+      sub handler {
+         my $f = shift;
+
+         my $cookie = $f->r->headers_out->get('Set-Cookie');
+         $f->r->headers_out->set('X-Set-Cookie', $cookie);
+         return Apache2::Const::OK;
+      }
+      1;
+