title: Request doesn't use saved cookies in PersistentCookieStore
body: <p>I fixed the crash and error in my app when I declared a cookie store, but it doesn't save the cookies or something went wrong at an other position.</p>
  
  <p>At first I call these 2 lines:</p>
  
  <pre><code>AsyncHttpClient client = new AsyncHttpClient();
  PersistentCookieStore myCookieStore;
  </code></pre>
  
  <p>And then I have a POST:</p>
  
  <pre><code>public void postRequestLogin(String url, RequestParams params) {
      myCookieStore = new PersistentCookieStore(this);
      client.post(url, params, new AsyncHttpResponseHandler() {
          @Override
          public void onSuccess(String response) {
              client.setCookieStore(myCookieStore);
              System.out.println(response);
  
              if(response.contains("Login successful!")) {
                  TextView lblStatus = (TextView)findViewById(R.id.lblStatus);
                  lblStatus.setText("Login successful!");
                  getRequest("url");
              } else {
                  TextView lblStatus = (TextView)findViewById(R.id.lblStatus);
                  lblStatus.setText("Login failed!");
                  TextView source = (TextView)findViewById(R.id.response_request);
                  source.setText(response);
              }
          }
      });
  
  }
  </code></pre>
  
  <p>Then it should save the Logincookies and use it for the GET Request:</p>
  
  <pre><code>public void getRequest(String url) {
      myCookieStore = new PersistentCookieStore(this);
      client.get(url, new AsyncHttpResponseHandler() {
          @Override
          public void onSuccess(String response) {
              client.setCookieStore(myCookieStore);
              System.out.println(response);
              TextView responseview = (TextView) findViewById(R.id.response_request);
              responseview.setText(response);
          }
      });
  }
  </code></pre>
  
  <p>But it doesn't use the cookies. When I do the GET Request I'm already logged out.</p>
  
  <p>Edit: I forgot to say that I use a lib from this tutorial: <a href="http://loopj.com/android-async-http/" rel="nofollow">http://loopj.com/android-async-http/</a></p>