code: @Override
  	public void addCookie(Cookie cookie) {
  		L.d("Got a cookie: %s.", cookie);
  		synchronized (cookies) {
  			for (Iterator<Cookie> it = cookies.iterator(); it.hasNext(); ) {
  				Cookie c = it.next();
  				if (isEqual(cookie, c)) {
  					it.remove();
  				}
  			}
  		}
  		if (!cookie.isExpired(new Date())) {
  			cookies.add(cookie);
  		}
  		if (persistCookies) {
  			persistCookies();
  		}
  	}
docs: HttpClient