<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS 7.0 - Application Request Routing (ARR)</title><link>http://forums.iis.net/1154.aspx</link><description>Maximize server resources, and increase application availability and scalability with Application Request Routing.  Use this forum to ask questions, discuss issues, request features, and get support.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: ARR &amp; Firefox Cookie</title><link>http://forums.iis.net/thread/1906106.aspx</link><pubDate>Mon, 08 Jun 2009 07:03:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906106</guid><dc:creator>PawanM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906106.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1906106</wfw:commentRss><description>&lt;p&gt;Thx a lot Wonyoo&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: ARR &amp; Firefox Cookie</title><link>http://forums.iis.net/thread/1905966.aspx</link><pubDate>Fri, 05 Jun 2009 16:52:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905966</guid><dc:creator>wonyoo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1905966.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1905966</wfw:commentRss><description>&lt;p&gt;I am not able to repro the problem that you are reporting.&lt;/p&gt;
&lt;p&gt;Here is my setup.&amp;nbsp; I have an ARR server with one server in the server farm.&lt;/p&gt;
&lt;p&gt;I am using a very simple asp page to set the cookie, like shown below:&lt;/p&gt;
&lt;p&gt;&amp;lt;% &lt;br /&gt;Response.buffer = True &lt;br /&gt;Response.Cookies(&amp;quot;testcookie&amp;quot;) = &amp;quot;Hello&amp;quot;&lt;br /&gt;Response.Cookies(&amp;quot;testcookie&amp;quot;).Path = &amp;quot;/&amp;quot;&lt;br /&gt;%&amp;gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Using Firefox version 3.0.10, I can clear see the cookie being set from the &lt;strong&gt;origin&lt;/strong&gt; server:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;- Http: Response, HTTP/1.1, Status Code = 200, URL: /cookietest.asp &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProtocolVersion: HTTP/1.1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StatusCode: 200, Ok&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reason: OK&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cache-Control:&amp;nbsp; private&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContentLength:&amp;nbsp; 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContentType:&amp;nbsp; text/html&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Server:&amp;nbsp; Microsoft-IIS/7.0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;Set-Cookie:&amp;nbsp; testcookie=Hello; path=/&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set-Cookie:&amp;nbsp; ASPSESSIONIDSCBTCBSA=OBOHJDKABOLGBEOMEDLBNGDH; path=/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPoweredBy:&amp;nbsp; ASP.NET&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date:&amp;nbsp; Fri, 05 Jun 2009 16:41:08 GMT&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HeaderEnd: CRLF&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Then I sent another request to the same server, and again on the request that is going to the origin server, I can clearly see the cookie being sent to the server from ARR via the request header:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;- Http: Request, GET /env.asp &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Command: GET&lt;br /&gt;&amp;nbsp; + URI: /env.asp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProtocolVersion: HTTP/1.1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keep-Alive:&amp;nbsp; 300&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accept:&amp;nbsp; text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accept-Charset:&amp;nbsp; ISO-8859-1,utf-8;q=0.7,*;q=0.7&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accept-Encoding:&amp;nbsp; gzip,deflate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accept-Language:&amp;nbsp; en-us,en;q=0.5&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cookie:&amp;nbsp; testcookie=Hello;&lt;/strong&gt; ASPSESSIONIDSCBTCBSA=OBOHJDKABOLGBEOMEDLBNGDH&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Host:&amp;nbsp; arr2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max-Forwards:&amp;nbsp; 10&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserAgent:&amp;nbsp; Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X-Original-URL:&amp;nbsp; /env.asp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X-Forwarded-For:&amp;nbsp; [2001:4898:2a:5:50e8:1030:165c:4924]:50465&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X-ARR-LOG-ID:&amp;nbsp; 10767ae5-588c-45b2-83d7-c618c02d8f03&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connection:&amp;nbsp; Keep-Alive&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HeaderEnd: CRLF&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here is what I would recommend that you try.&amp;nbsp; Basically there are two different places where you will need to do the network tracing; 1) between your origin server and ARR and 2) ARR and your client/browser.&amp;nbsp; Capture both the request and the response and see what is going on.&amp;nbsp; In terms of code path, the number of servers in the server farm doesn&amp;#39;t really play a role in how the cookies are being set by your application.&amp;nbsp; You will want to take a look at the traces and see if your application is setting the cookie correctly when there is only one server.&amp;nbsp; Then verify that it is being passed correctly by ARR to your client.&amp;nbsp; On subsequent requests, ensure that your client is sending the cookie in the request header, and again between ARR and your origin server.&amp;nbsp; Based on your trace, you should be able to narrow down who may be dropping the cookie.&lt;/p&gt;
&lt;p&gt;In my setup, I am able to see the cookie all the way through with having just one server in the server farm.&amp;nbsp; If you have more data that shows that ARR is not passing the cookie (ie. your server is setting it correctly and that the client/browser is also sending it correctly), then I am happy to look at it more, but we need to be able to repro.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: ARR &amp; Firefox Cookie</title><link>http://forums.iis.net/thread/1905910.aspx</link><pubDate>Fri, 05 Jun 2009 11:21:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905910</guid><dc:creator>PawanM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1905910.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1905910</wfw:commentRss><description>&lt;p&gt;We are setting the cookies through our application only.&amp;nbsp; Yea I checked the cookies, it is available in case of IE, Chrome but not for Firefox. As soon as I make my second server online, cookies are avaialble in firefox too.&amp;nbsp; I think it is the matter of request header values. Firefox is not able to read the cookies neatly when it is redirected through ARR server.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: ARR &amp; Firefox Cookie</title><link>http://forums.iis.net/thread/1905649.aspx</link><pubDate>Wed, 03 Jun 2009 15:50:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905649</guid><dc:creator>wonyoo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1905649.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1905649</wfw:commentRss><description>&lt;p&gt;The number of active servers in the server farm does not impact whether the cookies are set or not.&lt;/p&gt;
&lt;p&gt;Are these cookies that are being set by ARR or by your application?&amp;nbsp; Have you done the network traces to see what request and response headers are being set to ensure that the right cookies are being set?&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: ARR &amp; Firefox Cookie</title><link>http://forums.iis.net/thread/1905621.aspx</link><pubDate>Wed, 03 Jun 2009 13:17:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905621</guid><dc:creator>PawanM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1905621.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1905621</wfw:commentRss><description>Issue resolved after bringing the second server online in web farm. I am still wondering why this happened when there was only one active server in farm &amp;amp; only with Firefox browser.&amp;nbsp; It might be either ARR bug or its feature restriction. I&amp;#39;ll be thankful if someone put more specs on that.&lt;br /&gt;</description></item><item><title>ARR &amp; Firefox Cookie</title><link>http://forums.iis.net/thread/1905568.aspx</link><pubDate>Wed, 03 Jun 2009 07:03:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905568</guid><dc:creator>PawanM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1905568.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1905568</wfw:commentRss><description>&lt;p&gt;I am unable to set &amp;amp; read cookie in mozilla firefox&amp;nbsp; after configuring ARR. The same set of code is working fine with IE browsers. Basically I am setting a cookie for some domain &amp;amp; the cookie is not available in Firefox. I changed the url bindings at server side &amp;amp; put ipaddress instead of domain name, then it works fine both in IE &amp;amp; Firefox, but this is not the solution I am looking for. &lt;/p&gt;&lt;p&gt;Please suggest me a cleaner approach. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>