I would like to track users activities with data from wwSession.dbf and wwRequestLog.dbf. I tried to add a new SessionId field into wwRequestLog.dbf but I do not understand how to get SessionId value in wwServer.LogRequest function:
INSERT INTO (THIS.cLogFile) ; (TIME, QueryStr ,REMOTEADDR, Duration,Error,Script,MemUsed,ReqId,SessionId) ; VALUES (DATETIME(), ; lcParameter ,; lcRemoteAddress,; lnSeconds,llError,; lcExecutable,; SYS(1016),; lcReqId,; SessionId)
If I create a wwSession object just before INSERT I see the oSession.cSessionId property empty.
How to see wwSession object from wwServer?
I would like to use this solution rather add a new function writing SessionID and users data at every hit, because I am afraid to slow the web application.
Thank you very much