You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "David Cassidy (Programmer)" <dc...@hotgen.com> on 2001/05/25 10:09:20 UTC
logging user session id in apache log files - mod_jk issue
Guys,
Does anyone know if there is a better way then this :(below)
Has anyone made a new version of mod_jk that makes the
session ID availiable.
I've had a look at the mod_jk source and it should be
quite possible to make it do it - but why re-invent the
wheel ?!
Thanks
David
> i03sv6043, i03sv0102 and i03sv0101
> From: kenneth topp
> Subject: adding sessionId to apache logs
> Date: Mon, 13 Nov 2000 16:36:13 -0800 (PST)
>
> Well, I did it, and it was too easy.
>
> Adding a line in SessionInterceptor.beforeBody():
>
> response.addHeader("jsessid", (reqSessionId!=null) ?
> reqSessionId : request.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
>