RE: Logging Session IDs from environment variables

1999-10-15 Thread clinton

Many thanks Geoff

I feel rather embarassed to admit my stupidity here.  Most pages didn't
include the ID from notes because (DOH!) they were images and the browser
was not required to prove its identity.

When I scanned up the page a bit... indeed there they were

My apologies, and again thanks

Clint


> -Original Message-
> From: Young, Geoffrey S. [mailto:[EMAIL PROTECTED]]
> Sent: 13 October 1999 13:15
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: Logging Session IDs from environment variables
>
>
> well...
>
> variables set by the notes and subprocess_env methods should
> be available
> for the entire length of the request, no matter what phase
> they are set.
>
> I just set up a test handler that used both notes and
> subprocess_env to set
> up variables in a PerlInitHandler and was able to capture
> them by adding
> them to the LogFormat directive.  Make sure the directive
> quotes the quotes
> (that is, \"{NOTES_VAR}n\" for example).  That you are using
> PerlAuthenHandler should not make a difference.
>
> I'm not sure if mod_perl implements a way to get pnotes stuff
> into your
> logs, which is a pretty cool function.  Anyone?
>
> hope this helps - if not, try posting the relevant bits...
>
> --Geoff
>
>
>
> > -Original Message-
> > From:   [EMAIL PROTECTED]
> [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, October 11, 1999 10:34 AM
> > To: [EMAIL PROTECTED]
> > Subject:Logging Session IDs from environment variables
> >
> > Hi all
> >
> > I have asked this before, but I still haven't managed to
> shed any light on
> > it, so I was hoping that somebody might be able to shed
> some more light.
> >
> > (While you're about it, have a look at the site we have
> just launched :
> > http://www.orgasmicwines.com - mod_perl & mysql based site.)
> >
> > If I store my sessionID in an environment variable (or in
> $r->notes), I
> > can
> > see it in other Apache:: modules, but when I try to log it
> using the the
> > CustomLog directive in httpd.conf, the environment variable
> (or $r->notes)
> > is blank.
> >
> > Does this have anything to do with the fact that I'm setting the ENV
> > variable in a PerlAuthenHandler, before %ENV is set up?  And that
> > shouldn't
> > affect $r->notes, should it?
> >
> > Any help greatly appreciated
> >
> > Many thanks
> >
> > Clint
>



RE: Logging Session IDs from environment variables

1999-10-15 Thread Young, Geoffrey S.

don't worry about it - I ask silly questions all the time ;)

just in case you are interested... for my logging I set up several log
handlers: one main handler that pushes other log handlers on to the
PerlLogHander stack using push_handlers().  This way I can use the main
handler to do some pattern matching and stuff on the URI and use different
logging routines for different types of pages - for instance, I skip logging
all requests for images and the redirects resulting from a 404.

anyway, just thought I'd mention it.

glad you got your problem figured out.

--Geoff



> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 15, 1999 8:00 AM
> To:   'Young, Geoffrey S.'; Clinton Gormley; [EMAIL PROTECTED]
> Subject:  RE: Logging Session IDs from environment variables
> 
> Many thanks Geoff
> 
> I feel rather embarassed to admit my stupidity here.  Most pages didn't
> include the ID from notes because (DOH!) they were images and the browser
> was not required to prove its identity.
> 
> When I scanned up the page a bit... indeed there they were
> 
> My apologies, and again thanks
> 
> Clint
> 
> 
> > -Original Message-
> > From: Young, Geoffrey S. [mailto:[EMAIL PROTECTED]]
> > Sent: 13 October 1999 13:15
> > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> > Subject: RE: Logging Session IDs from environment variables
> >
> >
> > well...
> >
> > variables set by the notes and subprocess_env methods should
> > be available
> > for the entire length of the request, no matter what phase
> > they are set.
> >
> > I just set up a test handler that used both notes and
> > subprocess_env to set
> > up variables in a PerlInitHandler and was able to capture
> > them by adding
> > them to the LogFormat directive.  Make sure the directive
> > quotes the quotes
> > (that is, \"{NOTES_VAR}n\" for example).  That you are using
> > PerlAuthenHandler should not make a difference.
> >
> > I'm not sure if mod_perl implements a way to get pnotes stuff
> > into your
> > logs, which is a pretty cool function.  Anyone?
> >
> > hope this helps - if not, try posting the relevant bits...
> >
> > --Geoff
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, October 11, 1999 10:34 AM
> > > To:   [EMAIL PROTECTED]
> > > Subject:  Logging Session IDs from environment variables
> > >
> > > Hi all
> > >
> > > I have asked this before, but I still haven't managed to
> > shed any light on
> > > it, so I was hoping that somebody might be able to shed
> > some more light.
> > >
> > > (While you're about it, have a look at the site we have
> > just launched :
> > > http://www.orgasmicwines.com - mod_perl & mysql based site.)
> > >
> > > If I store my sessionID in an environment variable (or in
> > $r->notes), I
> > > can
> > > see it in other Apache:: modules, but when I try to log it
> > using the the
> > > CustomLog directive in httpd.conf, the environment variable
> > (or $r->notes)
> > > is blank.
> > >
> > > Does this have anything to do with the fact that I'm setting the ENV
> > > variable in a PerlAuthenHandler, before %ENV is set up?  And that
> > > shouldn't
> > > affect $r->notes, should it?
> > >
> > > Any help greatly appreciated
> > >
> > > Many thanks
> > >
> > > Clint
> >



RE: Logging Session IDs from environment variables

1999-10-13 Thread Young, Geoffrey S.

well...

variables set by the notes and subprocess_env methods should be available
for the entire length of the request, no matter what phase they are set.  

I just set up a test handler that used both notes and subprocess_env to set
up variables in a PerlInitHandler and was able to capture them by adding
them to the LogFormat directive.  Make sure the directive quotes the quotes
(that is, \"{NOTES_VAR}n\" for example).  That you are using
PerlAuthenHandler should not make a difference.

I'm not sure if mod_perl implements a way to get pnotes stuff into your
logs, which is a pretty cool function.  Anyone?

hope this helps - if not, try posting the relevant bits...

--Geoff



> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, October 11, 1999 10:34 AM
> To:   [EMAIL PROTECTED]
> Subject:  Logging Session IDs from environment variables
> 
> Hi all
> 
> I have asked this before, but I still haven't managed to shed any light on
> it, so I was hoping that somebody might be able to shed some more light.
> 
> (While you're about it, have a look at the site we have just launched :
> http://www.orgasmicwines.com - mod_perl & mysql based site.)
> 
> If I store my sessionID in an environment variable (or in $r->notes), I
> can
> see it in other Apache:: modules, but when I try to log it using the the
> CustomLog directive in httpd.conf, the environment variable (or $r->notes)
> is blank.
> 
> Does this have anything to do with the fact that I'm setting the ENV
> variable in a PerlAuthenHandler, before %ENV is set up?  And that
> shouldn't
> affect $r->notes, should it?
> 
> Any help greatly appreciated
> 
> Many thanks
> 
> Clint



Logging Session IDs from environment variables

1999-10-12 Thread clinton

Hi all

I have asked this before, but I still haven't managed to shed any light on
it, so I was hoping that somebody might be able to shed some more light.

(While you're about it, have a look at the site we have just launched :
http://www.orgasmicwines.com - mod_perl & mysql based site.)

If I store my sessionID in an environment variable (or in $r->notes), I can
see it in other Apache:: modules, but when I try to log it using the the
CustomLog directive in httpd.conf, the environment variable (or $r->notes)
is blank.

Does this have anything to do with the fact that I'm setting the ENV
variable in a PerlAuthenHandler, before %ENV is set up?  And that shouldn't
affect $r->notes, should it?

Any help greatly appreciated

Many thanks

Clint



Logging Session IDs from environment variables

1999-10-11 Thread Clinton Gormley

Hi all

I have asked this before, but I still haven't managed to shed any light
on it, so I was hoping that somebody might be able to shed some more
light.

(While you're about it, have a look at the site we have just launched :
http://www.orgasmicwines.com - mod_perl & mysql based site.)

If I store my sessionID in an environment variable (or in $r->notes), I
can see it in other Apache:: modules, but when I try to log it using the
the CustomLog directive in httpd.conf, the environment variable (or
$r->notes) is blank.

Does this have anything to do with the fact that I'm setting the ENV
variable in a PerlAuthenHandler, before %ENV is set up?  And that
shouldn't affect $r->notes, should it?

Any help greatly appreciated

Many thanks

Clint