Thanks. Apparently the problem is elsewhere, $c->user("user") works now,
I don't know what I was looking at. Thanks everybody who answered.

- Robert

Thomas von Elling Skifter Eibner wrote:
> 
> On Fri, May 26, 2000 at 09:55:12AM +0200, Robert wrote:
> >   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.
> 
> I wrote a PerlTransHandler to allow access from a specific to a client when a 
>certain header was presenet (and had the right information) for a project at where I 
>work and for this I did set the "user" via Apache::Connection's user method. I have a 
>mod_perl 1.19 reference card from http://www.refcards.com/ which states that the 
>method is both read/writeable.
> I use it like this:
> my $c = $r->connection;
> $c->user("user");
> 
> and it shows up in the log like this:
> 
> 195.24.22.201 - user [25/May/2000:15:50:16 +0200] "GET /index.html HTTP/1.0" 304 -
> 
> --
> Thomas Eibner

Reply via email to