ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | August 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Apache Director module remove cookies from request


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

We are using  director at work and  wanted to do site navegation
tracking. To achieve that purpose we needed to log the cookies.
We activated the apache coockies logging but the coockies never showed up.
The problem was that apache director module remove the cookies from
the request structure received from the apache server.
When the apache was about to log the cookies, it had nothing to log.

I found that in mod_enhydra_director.c the cookies were explicitly
removed:

ap_table_unset(r->headers_in, "Cookie");

I commented  that line and with the new module the cookies started to
show up in logs as expected.
What was the purpose of removing the cookies from the request
structure? I can't see a reason for doing that and it looks like bad
ideia as it broken cookies logging and could broke sometinhg else.May
be i'm missing something.

I dont know if someone else  need cookies logging  but if so the
really simple patch is at the end of this email.

Regards.
João Paulo Ribeiro

xxxxxx@yyyyyy(~/apache-director-5.1-7/director/apache)$ diff
mod_enhydra_director.c mod_enhydra_director.c.new
563c563,567
<     ap_table_unset(r->headers_in, "Cookie");
- ---
|
| /* João Paulo Ribeiro 2004/08/25 * Comented to left the cookies so
| stronghold can log them * ap_table_unset(r->headers_in, "Cookie");
| */


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBM269bwM7R+C+9B0RAsCGAKCbk7vMjAaN6giBVZ1VMaTAGNvayACgojXr
YdQ3OoBcrP34mc/blrF5Yuo=
=VuNl
-----END PGP SIGNATURE-----



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.