PDA

View Full Version : log username in apache logs


pete_macnn
07-17-2007, 12:06 PM
Hi,

I'm trying to find a way to log usernames (the username of the vb user making the request, assuming the request is coming from a logged in user) in the apache access log, a bit like the way usernames are logged when htaccess authentication is being used.

Any ideas please? The information would be in the bbuserid cookie, but how to get Apache to log this? Would I be better off modifying vb to log requests (since it would be easy for the PHP code to view the content of the bbuserid cookie)

nico_swd
07-17-2007, 12:39 PM
Maybe error_log() (http://www.php.net/error_log) helps.