title: WCF -> ASMX and Cookies
body: <p>I have a web application that communicates to a WCF service through a WCF client. At the point my code is invoked, authentication cookies have been issued and I have a dependency on an ASMX service that expects those authentication cookies.</p>
  
  <p>I need to pass the cookies from the web application through the WCF client to the WCF service to the ASMX service.</p>
  
  <p>Any ideas? It looks like my best bet may be setting allowCookies to false, parsing out the cookie headers, attempting to re-create them on the WCF service and then attaching them to the SOAP request. </p>
  
  <p>Note: I looked at <a href="https://stackoverflow.com/questions/201153/wcf-client-consuming-multiple-asmx-service-that-uses-http-cookies">this article</a>, which seems close but not quite applicable to this question. In the linked scenario, an ASMX service is creating cookies, which must be persisted to a subsequent ASMX service by the same WCF client.</p>