cookie logging in SJWS 7

I would like to log one specific cookie in the log file, but this seems not to work.

When I use %Req->headers.cookie% in the format, then all the cookies are correctly logged, and I see the "corpID" cookie that I want to log.

But when using %Req->headers.cookie.corpID% to just log the cookie with the name "corpID", then it does not log anything.

Am I doing something wrong or is this a bug ?

Thanks

Stephan

[453 byte] By [Stephan_Biesbroecka] at [2007-11-26 21:03:34]
# 1

%Req->headers.cookie.corpID% seems to work here. I sent requests with and without the corpID cookie and saw the following in my access log:127.0.0.1 - - [09/Mar/2007:11:02:34 -0800] "GET /index.html HTTP/1.0" 200 12020 corpID=foo

127.0.0.1 - - [09/Mar/2007:11:02:40 -0800] "GET /index.html HTTP/1.0" 200 12020 -Are you sure the cookie you're trying to log is really named corpID? (It's case sensitive.)

elvinga at 2007-7-10 2:36:10 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Oops, sorry, I mistakenly used %Req->headers.cookie%, not %Req->headers.cookie.corpID%. Using %Req->headers.cookie.corpID% doesn't work here, either.

As a work around, you can replace %Req->headers.cookie.corpID% with $cookie{'corpID'}.

I've filed a bug report, CR 6532996, about this problem. Hopefully it will be fixed in 7.0 Update 1.

elvinga at 2007-7-10 2:36:10 > top of Java-index,Web & Directory Servers,Web Servers...