title: How to read persistent cookies stored by browser in java web start application
body: <p>I have a java web start application. 
  Before launching the application web page stores a persistent cookie. </p>
  
  <p>This is have the cookie has created: (.asp page):</p>
  
  <pre><code>Response.Cookies("MyApp")("Test") = "SomeValue"
  Response.Cookies("Myapp").Expires = DateAdd("yyyy", 1, Now())
  </code></pre>
  
  <p>I can see the cookie inside chrome. </p>
  
  <p>And this is how i tried to read the cookies:</p>
  
  <pre><code>CookieManager manager = new CookieManager();
  manager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
  CookieHandler.setDefault(manager);
  
  CookieStore cookieJar = manager.getCookieStore();
  List&lt;HttpCookie&gt; cookies = cookieJar.getCookies();
  for (HttpCookie cookie : cookies) {
      System.out.println("CookieHandler retrieved cookie: "
              + cookie);
  }
  </code></pre>
  
  <p>How can i read that cookie in my application? </p>