[Zope] Re: Z2.log logs user as Anonymous

Jochen Knuth jok-zope at ipro.de
Thu Oct 16 13:23:24 EDT 2003


Hi,

Paul Winkler wrote:

> On Thu, Oct 16, 2003 at 12:01:33PM +0200, Ruth Mizzi wrote:
> 
>> The only problem is with my Z2.log... the zope access log. I'd like
>> to use this to gather some statistics about which users log in most
>> frequently etc. What's happening though is that when a user logs
>> into the site and continues browsing through it, the z2.log keeps
>> logging the user as "Anonymous". The only time this changes is when
>> I use the ZMI and in that case the log lists the user as 'admin'.
>> 
>> Can anyone tell me what I'm missing?
> 
> 
> As I understand it, if an object is anonymously accessible, Zope
> skips the authentication / authorization process.  A logged-in user
> might as well be anonymous unless they are looking at an object which
> requires authorization.
> 

the problem here is the use of cookie based authentication. so the user 
info is not in the http authentication header, which is where the user 
in the logs come from.
So you have the choice:

1. user names in the logs -> dont use cookie base authentication
2. cookie based authentication (login with forms) - >no user names in logs

Ciao,
Jochen

-- 
--------------------------------------------------
Jochen Knuth          WebMaster http://www.ipro.de
IPRO GmbH             Phone ++49-7152-93330
Steinbeisstr. 6       Fax ++49-7152-933340
71229 Leonberg        EMail: J.Knuth at ipro.de




More information about the Zope mailing list