Janine, I think I answered the wrong question. It might be the browser, or the form of the cookie, which the browser doesn't like. My cookie code puts the path after max-age. It also quotes the cookie value. You do have some interesting characters in the cookie value, maybe the need to be quoted or escaped? Of course telnet doesn't care what it sends, so you can send the cookie along and it will not test the browser, only the server. You might be able to look at the browser information on the page. Even if the cookie was malformed, parts of it might be present, just to let you know if it at least gets saved by the browser.
I discovered a bug in the Mozilla browser codebase where you could not quote the Max-Age value or the Path value. Quoting the path caused the browser to not recognize it needed to send the cookie. Quoting Max-Age lead to the cookie becoming a session cookie. But it doesn't look like you have those issues, so maybe the order of the attributes or the non-quoting of the cookie value, or something else. tom jackson On Friday 17 February 2006 16:44, Janine Sisk wrote: > OK, so here we go. test.tcl contains a single line, a call to > ad_returnredirect, which has been modified to use ns_respond instead > of ns_returnredirect. > > GET /test.tcl HTTP/1.0 > > HTTP/1.0 302 Found > Set-Cookie: ad_session_id=80111002%2c0+%7b542+1140224229 > +57E9A3EA3E33AB40F47F8EA71184A3D012E347ED%7d; Path=/; Max-Age=1200 > location: http://temp.nybooks.com/test2.tcl > MIME-Version: 1.0 > Date: Sat, 18 Feb 2006 00:37:09 GMT > Server: AOLserver/4.0.10 > Content-Type: text/plain; charset=iso-8859-1 > Content-Length: 8 > Connection: close > > RedirectConnection closed by foreign host. > > And if I request test2.tcl directly, I get > > GET /test2.tcl HTTP/1.0 > > HTTP/1.0 200 OK > MIME-Version: 1.0 > Content-Type: text/html > Set-Cookie: ad_session_id=80111202%2c0+%7b453+1140224589 > +962CB2C08C8F3888B4A1FF91770F02814E70BB45%7d; Path=/; Max-Age=1200 > Server: AOLserver/4.0 > > ns_conn headers - size = 0<br> > <p> > ad_conn headers - size = 0<br> > <p> > ns_conn outputheaders - size = 2<br> > key = Set-Cookie, value = ad_session_id=80111202%2c0+%7b453+1140224589 > +962CB2C08C8F3888B4A1FF91770F02814E70BB45%7d; Path=/; Max-Age=1200<br> > key = Server, value = AOLserver/4.0<br> > <p> > ad_conn outputheaders - size = 2<br> > key = Set-Cookie, value = ad_session_id=80111202%2c0+%7b453+1140224589 > +962CB2C08C8F3888B4A1FF91770F02814E70BB45%7d; Path=/; Max-Age=1200<br> > key = Server, value = AOLserver/4.0<br> > Connection closed by foreign host. > > So Set-Cookie is there. > > However, if I request test.tcl in the browser, I get redirected to > test2.tcl which prints out the output of ad/ns_conn headers and ad/ > ns_conn outputheaders, where there is nary a Set-Cookie in sight. > Somehow it's getting lost along the way. > > I'm perplexed. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
