code: public static void set (String path, int expires, String name, String value, String domain)
      {
          String extra = "";
          if (path.length() > 0) {
              extra += "; path=" + path;
          }
          if (domain != null) {
              extra += "; domain=" + domain;
          }
          doSet(name, value, expires, extra);
      }
docs: Sets the specified cookie to the supplied value.
  
  @param expires The number of days in which the cookie should expire.
  @param domain The domain to set this cookie on.