http://www.perlmonks.org?node_id=243097


in reply to How do you run mod_perl handlers after standard Apache handlers

I do not really know anything about mod_usertrack, but maybe you can tell it to run at different phase it the request cycle. To do this, you'll need to modify the C source code of mod_usertrack.

At the end of mod_usertrack.c in (apache_1.3.xx/src/modules/standard) you'll find a large data structure. I do not know how much you know about mod_perl / Apache, but each entry in this list corresponds to one phase of the Request Cycle. You could try to move spot_cookie on line up, into the type_checker phase (be sure to replace it with NULL in the fixup phase). Recompile Apache. It might work, but I'm not sure...

Or take a look at Apache::Usertrack, but is rather old and unfinished...

And maybe somebody on the mod_perl mailing list knows better...

-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}