Tracing outgoing cookies from the servlet engine
 Technote (FAQ)
 
Problem
What is the minimum trace to see the cookie values outgoing from the servlet engine in WebSphere® Application Server V4.0 releases?
 
Cause
A full servlet engine trace can be very large. This technote provides the trace settings necessary to obtain outgoing cookie values while keeping the size of the tracefile to a minimum.
 
Solution
Use the following instructions to see the outgoing cookie sent by the servlet engine to the Web client. This will get the cookie information without other trace information showing.

Here is a description of how to setup the trace: http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?tab=search&searchWord=enabling+trace

Use the following trace string:


com.ibm.servlet.engine.srt.SRTServletResponse=debug=enabled


The resulting output in the trace output file will be similar to the following:

[4/9/04 12:50:21:219 EDT]  7e59ea1 SRTServletRes D set response character encoding: ISO-8859-1
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D created writer with encoding: ISO8859_1
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Setting attribute for com.ibm.websphere.acquiring_uri
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Writer obtained while serving "/Cookie/CookieTest.jsp"
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Setting attribute for com.ibm.websphere.committing_uri
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Commit occurred while serving "/Cookie/CookieTest.jsp"
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Response HTTP status code: 200
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Commit header [Content-Type:text/html]
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Commit header [Set-Cookie:JSESSIONID=0000ZQTQDT4GEB1SNMGW0R5S4AA:-1;Path=/]
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Commit header [Cache-Control:no-cache="set-cookie,set-cookie2"]
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Commit header [Expires:Thu, 01 Dec 1994 16:00:00 GMT]
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Commit header [Set-Cookie:hostResponseNum=Integer.MAX_VALUE]
[4/9/04 12:50:23:250 EDT]  7e59ea1 SRTServletRes D Commit header [Content-Language:en]

 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Servlet Engine/Web Container
Operating system(s): Windows
Software version: 4.0.7
Software edition:
Reference #: 1170130
IBM Group: Software Group
Modified date: Mar 30, 2006