title: How do I get the current cookie / session ID from a HttpResponseMessage?
body: <p>I try to use the new .net 4.5 HttpClient from System.net.http.</p>
  
  <p>I set-up my client like this</p>
  
  <pre><code>CookieContainer cookieJar = new CookieContainer();
           HttpClientHandler handler = new HttpClientHandler
           {
               CookieContainer = cookieJar,
               AllowAutoRedirect = true
           };
           handler.UseCookies = true;
           handler.UseDefaultCredentials = false;
  
           HttpClient client = new HttpClient(handler as HttpMessageHandler);
  </code></pre>
  
  <p>then I do a <code>client.GetAsync(url)</code></p>
  
  <p>now I am inspecting the response and try to get the cookie / session values for a following post.</p>
  
  <p>I try to test a login scenario of an existing page via code...</p>
  
  <p>How do I get the cookie information in a response? Or do I walk on a wrong path here?
  Any explanation would be fantastic...</p>