My CFM pages are a simple HTML form and a response page containing enough CFML to display CFID, CFTOKEN, and a CLIENT variable or two. These pages work exactly as expected in Internet Explorer and I have watched the HTTP header traffic here and this is also as expected.
These pages do not work as expected when I use a testing application (Canoo Webtest) to fill in and submit the form. If I turn on debugging in Webtest, I can watch the HTTP header traffic flowing back and forth between Webtest and my server and when I try to run the same pages that worked in IE, I can see that the cookie coming from Webtest is being ignored by my server. In other words, 1) the server starts by setting a cookie in the browser with: Set-Cookie: CFID=118341; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/; 2) the browser will send a header containing: Cookie: CFID=118341" 3) the server will then reply with: Set-Cookie: CFID=118342; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/; So, the server is not accepting CFID=118315 for some reason and issuing the next increment in CFID to the browser. The client variable does exist on the server though because if I pass CFID and CFTOKEN in the action URL of the form, Webtest can submit the form just as well as Internet Explorer. Examination of the headers in this URL-passed case shows that the server recognizes the CFID and CFTOKEN from the URL and responds with an identical CFID and CFTOKEN in the Set-Cookie header of the next response. I can't figure out why the cookie information in the Webtest-initiated request is being ignored by our server. The headers appear to be formatted correctly. Here is an example of the trace and you will see where the server accepts URL-appended parameters and ignores cookie header information. In this example, I start at working.cfm, which submits to security_router.cfm with CFID and CFTOKEN in the action URL. Notice that the browser is also responding with the initial header information, but the server only recognizes the URL version (a 118351 value proven to work consistently). The browser then dutifully accepts the new CFID value which it will use in its next request. Finally, working.cfm is loaded a second time as a final test and here we stop. The browser CFID cookie is ignored on the second working.cfm load, but, in this case, there is no URL to save the day and the server increments the CFID in its next response. Again, this all works fine in Internet Explorer and all settings in <CFAPPLICATION> are set correctly. Anyone have any ideas? Jerry [testSpec] DEBUG (httpclient.wire.header) - >> "GET /personal/pgh009/_TESTING/center/templates/working.cfm HTTP/1.1[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Host: test.allied.nwie.net[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "HTTP/1.1 200 OK[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Server: Microsoft-IIS/5.0[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Date: Wed, 15 Dec 2004 20:16:16 GMT[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Pragma: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Cache-Control: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Expires: Monday, 01 Jan 1980 15:20 GMT[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Connection: close[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Content-type: text/html[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Page-Completion-Status: Normal[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Page-Completion-Status: Normal[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Set-Cookie: CFID=118341; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Set-Cookie: CFTOKEN=4d7a427%2D31a7af1b%2D5d61%2D415a%2D9bcc%2D75a5aa5aee29; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "POST /personal/pgh009/_TESTING/center/templates/security_router.cfm?CFID=118315&CFTOKEN=5183111-9%20fcc7411-1b5e-40b9-a49a-10fb201ee036 HTTP/1.1[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Host: test.allied.nwie.net[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Cookie: CFID=118341[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Cookie: CFTOKEN=4d7a427%2D31a7af1b%2D5d61%2D415a%2D9bcc%2D75a5aa5aee29[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Content-Length: 41[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "HTTP/1.1 100 Continue[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Server: Microsoft-IIS/5.0[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Date: Wed, 15 Dec 2004 20:16:17 GMT[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Pragma: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Cache-Control: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Expires: Monday, 01 Jan 1980 15:20 GMT[\r][\n]" [testSpec] INFO (org.apache.commons.httpclient.HttpMethodBase) - Discarding unexpected response: HTTP/1.1 100 Continue [testSpec] DEBUG (httpclient.wire.header) - << "HTTP/1.1 200 OK[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Server: Microsoft-IIS/5.0[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Date: Wed, 15 Dec 2004 20:16:17 GMT[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Pragma: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Cache-Control: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Expires: Monday, 01 Jan 1980 15:20 GMT[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Connection: close[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Content-type: text/html[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Page-Completion-Status: Normal[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Page-Completion-Status: Normal[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Set-Cookie: CFID=118315; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Set-Cookie: CFTOKEN=5183111%2D9+fcc7411%2D1b5e%2D40b9%2Da49a%2D10fb201ee036; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "GET /personal/pgh009/_TESTING/center/templates/working.cfm HTTP/1.1[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Host: test.allied.nwie.net[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Cookie: CFID=118315[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "Cookie: CFTOKEN=5183111%2D9+fcc7411%2D1b5e%2D40b9%2Da49a%2D10fb201ee036[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - >> "[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "HTTP/1.1 200 OK[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Server: Microsoft-IIS/5.0[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Date: Wed, 15 Dec 2004 20:16:17 GMT[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Pragma: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Cache-Control: no-cache[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Expires: Monday, 01 Jan 1980 15:20 GMT[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Connection: close[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Content-type: text/html[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Page-Completion-Status: Normal[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Page-Completion-Status: Normal[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Set-Cookie: CFID=118342; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;[\r][\n]" [testSpec] DEBUG (httpclient.wire.header) - << "Set-Cookie: CFTOKEN=412e9be%2Dc509b492%2D7529%2D4db7%2Dbd83%2Dae2255f976ee; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;[\r][\n]" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188280 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54