On Fri, 26 May 2000, Robert wrote:
> Hi,
>
> I'm trying to use Eagle book-like URL rewriting to track sessions and
> I'd like to log session id in the 'user' field (so Analog can do all
> kind of usefull stats about sessions). I hoped I could just set 'user'
> throught Apache::Connection's user method, but it seems to be read-only.
> Is there any simple way to make Apache log some knowN string (say
> $ENV{SESSION_id}) to the user field? Or do I have to write complete
> LogHandler for it? Thanks for your help.
You can log anything in $r->notes with log_config using the %{}n notation.
Say you put your session in $r->notes('SESSION' => $session).
You would log it as %{SESSION}n
This saved me from writing my own log handler. :-)
--
-- Tom Mornini
-- InfoMania Printing and Prepress