The server object doesn't have access to the Session. In fact, the Session object most likely is no longer active when you're trying to log the value because it occurs after the process class is done processing.
So, if you want to do this you have to track this value yourself. You can:
- In your process class OnProcessInit() after InitSession() Server.oResources.AddIcActiveSession = Session.cSessionIdFUNCTION OnProcessInit() THIS.InitSession("MyApplication") Server.oResources.Add("ActiveSessionId") = Session.cSessionId ENDFUNCT
- Then modify your logging routine to log the ActiveSessionId property from the Log methodlcSessionId = THIS.oResources.Item("ActiveSessionId") IF ISNULL(lcSessionId) lcSessionId = "" ENDIF
+++ Rick ---
from Maui, Hawaii