On Monday, November 26, 2012 12:05:45 PM Russ Kepler wrote:
> On Monday, November 26, 2012 01:44:25 PM Christopher Schultz wrote:
> > On 11/26/12 1:27 PM, Russ Kepler wrote:
> > > I'm running Tomcat 7 with juli logging enabled and so I'm seeing
> > > the standard logfiles.  In my access log I'm seeing the standard
> > > entries on each line and I'd like to see the cookies being passed
> > > as well - is there an easy way to do this - a property to set on
> > > the start up or something similar?
> > 
> > Do you need to be able to see arbitrary cookies, or do you have a
> > specific list of cookies for which you'd like to see values?
> 
> I'm trying to see if I'm passing the right jsessionid from a Java Web Start
> application.  I've found the AccessLogValve entry in the server.xml and
> added "%{jsessionid}c" to the log pattern.  I'm not seeing anything added
> to the log output, adding some plaintext to the pattern showed that I was
> in the right neighborhood.  I tried "%c" and got ???c???, so if there 
> doesn't seem to be a general "print the cookies" pattern.  I see a %S and
> that seems to be printing the session id but the session id seems to be
> changing between accesses:

Bad form replying to myself, but the cookie name seems to be case sensitive.  
Changing the form to "%{JSESSIONID}c" seems to be printing the right cookie.  
Here's the log using "%{JSESSIONID}c %S"

127.0.0.1 - webtyper [26/Nov/2012:12:11:12 -0700] "GET /WebTyper/Hello.jsp 
HTTP/1.1" 0B9EA01DEAD73DB885183DEC535251B7 8953D71715F23F7528C0C70B384B3F44 
200 470
127.0.0.1 - webtyper [26/Nov/2012:12:11:13 -0700] "GET /WebTyper/appload.jsp 
HTTP/1.1" 8953D71715F23F7528C0C70B384B3F44 8953D71715F23F7528C0C70B384B3F44 
200 814
127.0.0.1 - - [26/Nov/2012:12:11:13 -0700] "GET /WebTyper/app/Webtyper.jar 
HTTP/1.1" - 9319C7008BC21C4894AF24C985B3F727 304 -
127.0.0.1 - - [26/Nov/2012:12:11:27 -0700] "POST 
/WebTyper/data/json/typer/post HTTP/1.1" 9319C7008BC21C4894AF24C985B3F727 
9319C7008BC21C4894AF24C985B3F727 403 1195

I still am getting 403 on the last access with what seems to be the right 
session id.  

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

Reply via email to