private String toCookieStr(Cookie[] cookies) {
    StringBuilder cookieStr = new StringBuilder();

    for (Cookie c : cookies) {
      cookieStr.append(c.getName()).append('=').append(c.getValue()).append(" ;\n");
    }
    return cookieStr.toString();
  }
Convert cookie array to human readable cookie string
@param cookies Cookie Array
@return String containing all the cookies separated by a newline character.
Each cookie is of the format [key]=[value]
service/src/java/org/apache/hive/service/auth/HttpAuthService.java