Hi again,

I'm confused. I thought (apparently mistakenly) that there was always a session, but I must be wrong.

I just downloaded a fresh instance of 7.0.54 and added the %S to the valve config. However, I don't get any session keys in the log when I click around in the doc. But, as soon as I click on the manager or status links, I get the key.

So I guess there's a key available only when code creates a session? And not all the time, even though (I think) there's a session cookie all the time?

I'd appreciate any clarification on this.

Thanks,
Fred

On 6/9/2014 4:58 AM, Mark Thomas wrote:
On 09/06/2014 01:41, Fred Toth wrote:
Hi Dan,

Yes, the rest of the log is correct, and yes, I am certain I have an
active session (I can see the cookie in my browser).
Then something is messed up in your configuration. I've just checked
this works and it does. You'll need to provide your full server.xml
(comments removed please). Replace and passwords with "***" or similar.

Marl


Thanks,
Fred

On 6/8/2014 4:30 PM, Daniel Mikusa wrote:
On Jun 8, 2014 4:01 PM, "Fred Toth" <ft...@synernet.com> wrote:
Hi,

This feature is in the doc since at least tomcat 5. I'm using tomcat
7.0.47 and I just tried to add the user session id to the access log by
adding "%S" to the pattern attribute. However, it's not working. All I'm
getting is "-" in the log.

Have to ask, but are you sure that the request has an active session?
Usually when you see "-" it means the value is absent for that request.

Is there some trick to this? I haven't found anything online or in
bugzilla. Also posted to stack overflow:

Not aware of any tricks.  AccessLogValve is pretty straightforward. Is
the
rest of the log record correct?

Dan

http://stackoverflow.com/questions/24110188/cant-configure-tomcat-access-log-session-id-with-s

Thanks,
Fred


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to