title: CookieException with CookieContainer: The 'Path' part of the cookie is invalid
body: <p>I am trying to set the path of a cookie but I am always recieving the error:</p>
  
  <p><code>CookieException: The 'Path'='/applogin'</code> part of the cookie is invalid.</p>
  
  <p>the code looks like this:</p>
  
  <pre><code>Cookie newCookie = new Cookie("JSESSIONID", session.SessionId, "/applogin", "domain.com");
  newCookie.Secure = true;
  webRequest.CookieContainer.Add(new Uri(@"https://domain.com"), newCookie);
  </code></pre>
  
  <p>the exception is then throwen on the last line... can anyone point me in the right direction?</p>