title: Links being rendered with strange path values
body: <p>I've seen this a few times in our logs and users have also reported it to us but have never really gotten to the bottom of the problem.</p>
  
  <p>From time to time, a page will render from output caching with links that have a strange path value in. Say <code>(X(3)S(5l53uwuaffkddojv4iwb3snm))</code>. Presumably this occurs because the first render of the page has these links, and they are therefore cached with them.</p>
  
  <p>This means that all urls on that page look similar to this.</p>
  
  <p><a href="http://www.example.com/(X(3)S(5l53uwuaffkddojv4iwb3snm))/foo/bar/index.htm" rel="nofollow noreferrer">http://www.example.com/(X(3)S(5l53uwuaffkddojv4iwb3snm))/foo/bar/index.htm</a></p>
  
  <p>This looks identical to <a href="https://stackoverflow.com/questions/6229565/iis7-5-asp-net-mvc-users-hitting-strange-urls-f1xe9exixpz">this question</a> and the MSDN article "<a href="http://msdn.microsoft.com/en-us/library/aa479315.aspx" rel="nofollow noreferrer">Understand How the ASP.NET Cookieless Feature Works</a>", except that we use sessions or session cookies for our public site, but for 99% of our site, we don't actually use sessions. The remaining 1% uses session cookies for the user experience, so I don't see how this causes a problem with the rest of our site.</p>
  
  <p>This part of the above article seems to reference the issue:</p>
  
  <pre><code>// Step 2: Check if we have already detected that Cookies are not 
  //         supported. This is detected by looking for the string
  //        "/(X(1))/" in the URL
  If (URL-contains-"/(X(1))/")
     Report_cookies_are_NOT_supported_and_exit;
  </code></pre>
  
  <p>Currently the <a href="http://msdn.microsoft.com/en-us/library/h6bb9cz9%28v=vs.100%29.aspx" rel="nofollow noreferrer">sessionstate</a> looks like this:</p>
  
  <pre><code>&lt;sessionState mode="SQLServer" sqlConnectionString="data source=myDatabase;user id=dbUsername;password=dbPassword" cookieless="false" timeout="10080" /&gt;
  </code></pre>
  
  <p>Anyone have any ideas on how I can resolve this issue? Is there a way we can prevent urls like this from displaying?</p>