You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kenneth topp <ca...@prodigy.net> on 2000/11/14 01:36:13 UTC

adding sessionId to apache logs


Well, I did it, and it was too easy.

Adding a line in SessionInterceptor.beforeBody():

        response.addHeader("jsessid", (reqSessionId!=null) ? reqSessionId
                                     : rrequest.getRequestedSessionId() );


And in httpd.conf:

LogFormat "%h %l %{jsessid}o %t \"%r\" %>s %b" toppkcommon


Wow... too simple... now I need the program to interprete the info ;)

Thanks tomcat crew, thanks apache crew,

Kenneth