Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 07:52 am EST
Geeklog Forums
uid in access.log really isn't
Status: offline
tingo
Forum User
Chatty
Registered: 06/05/02
Posts: 57
Location:Oslo, Norway
I searched this site, but couldn't find an answer, so here goes.
The file ./logs/access.log in Geeklog logs the fact that a user has logged out of the site with lines like this
(date) - userid = (uid) logged out from (remote ip)
(curiously enough, Geeklog doesn't log when a user logs in) So far so good. Except that (uid) isn't, as you can see from the line in users.php that does the logging:
COM_accessLog("userid =
{$HTTP_COOKIE_VARS[$_CONF["cookie_session"]]}
{$LANG04[29]} $REMOTE_ADDR.");
The question is; how do I convert from the value written in access.log to a real Geeklog userid?
(date) - userid = (uid) logged out from (remote ip)
(curiously enough, Geeklog doesn't log when a user logs in) So far so good. Except that (uid) isn't, as you can see from the line in users.php that does the logging:
Text Formatted Code
COM_accessLog("userid =
{$HTTP_COOKIE_VARS[$_CONF["cookie_session"]]}
{$LANG04[29]} $REMOTE_ADDR.");
6
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I have to admit that I've wondered about this myself as long as I know Geeklog ;-)
What Geeklog is really logging here is the session id and there's no way to convert that back to a user id (I think).
Actually, I prefer it that way since Geeklog should not log user activity ...
bye, Dirk
8
5
Quote
All times are EST. The time is now 07:52 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content