title: Create persistent cookie with System.Windows.Application.SetCookie fails?
body: <p>I'm trying to create a persistent cookie. Here is the code:</p>
  
  <pre><code>string expires = string.Format("{0} GMT", DateTime.Now.AddHours(1).ToString("ddd, dd-MMM-yyyy HH:mm:ss"));
  string newCookie = string.Format("Cookie1=ValueToStore; expires={0}", expires);
  
  Uri location = new Uri("http://www.mysite.com/Application");
  
  System.Windows.Application.SetCookie(location, newCookie);
  string theSetCookie = System.Windows.Application.GetCookie(location);
  </code></pre>
  
  <p>The string <code>theSetCookie</code> should contain all the data in the cookie, no? However it only contains <code>Cookie1=ValueToStore;</code>. What am I missing? Why didn't the expiration date get in and make it a persistent cookie?</p>
  
  <p><em>Note: I am using Internet Explorer 9 in Windows 7</em></p>