title: Mantain Session with HttpClient C#
body: <p>My application displays webpage via streams, for security reasons.</p>
  
  <p>I have this code:</p>
  
  <pre><code>var client = new HttpClient();
  var response = await client.GetAsync("http://www.webpage.com");
  Stream products = await response.Content.ReadAsStreamAsync();
  return File(products, "text/html");
  </code></pre>
  
  <p>And this displays the webpage via a stream, and all is excellent, so, I send data via POST, for example, simple login:</p>
  
  <pre><code>[HttpPost]
  public async Task&lt;ActionResult&gt; Index([Bind(Include = "ID,username,password")] DataUser dataUser)
  {
      var myHttpClient = new HttpClient();
  
      var formContent = new FormUrlEncodedContent(new[]
      {
          new KeyValuePair&lt;string, string&gt;("username", dataUser.username),
          new KeyValuePair&lt;string, string&gt;("password", dataUser.password)
      });
  
      var response = await myHttpClient.PostAsync("http://www.webpage.com", formContent);
      Stream stringContent = await response.Content.ReadAsStreamAsync();
      return File(stringContent, "text/html");
  }
  </code></pre>
  
  <p>And all is well, I can login, BUT, the problem is when I want to access to another page, It displays me the message that I don't have an active Session.</p>
  
  <p>So, how can I mantain a active Session using HttpClient? Is there any method or something?</p>
  
  <p>Thanks!</p>