I checked it out and it's a good mod. I've already got the ability to log
the data however. The issue that I'm having is that I can't seem to only get
1 log per hit. I can't seem to get around the fact that wherever I put my
mod (PerlFixupHandler,PerlHandler,PerlLogHandler) or whatever statement I
use ($r->is_main(), $r->is_initial_req()) I'm getting not only the requested
page but every other request from the inital request. For instance, I'm
getting and logging every graphic, css, javascript, or any other file that's
linked in. But for my user tracking I want *just* the initial request, not
that and all subrequests. I just can't seem to figure out how to do that.
$r->is_main() and $r->is_initial_req() return true for everything.

KeepAlive is on. This happens with MSIE, Netscape, Lynx, Opera.... I would
assume Konquerer too.

I know that I have to be missing something pretty basic, I'm new to
programming in mod_perl.

-- Ryan

----- Original Message -----
From: "Andrew Moore" <[EMAIL PROTECTED]>
To: "Ryan Parr" <[EMAIL PROTECTED]>
Cc: "mod_perl list" <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 5:00 PM
Subject: Re: Custom Logging and User Tracking


>
> On Wed, Feb 13, 2002 at 04:42:02PM -0800, Ryan Parr wrote:
> > All good points. This code is only to test mod_perl Perl*Handler
mechanisms
> > to ensure that I can get the proper log. Once I figure out the necessary
> > routines to do this then I'll integrate it with the rest of my mod,
which
> > logs request and session info to a database.
> >
> > -- Ryan
> >
>
> You might check out Ask's Apache::DBILogger module. It's pretty simple
source,
> so you can make it log whatever you like pretty easily.
>
> -Andy
>

Reply via email to