code: public static Cookie newCookie(final String name, final String value, final String purpose,
  		final String domain, final int maxAge, final String path, final boolean secure)
  	{
  		final Cookie cookie = new Cookie(name, value);
  		cookie.setComment(purpose);
  		cookie.setDomain(domain);
  		cookie.setMaxAge(maxAge);
  		cookie.setPath(path);
  
  		return cookie;
  	}
docs: Creates a new cookie.
  
  @param name
  the name
  @param value
  the value
  @param purpose
  the purpose
  @param domain
  the domain
  @param maxAge
  the max age
  @param path
  the path
  @param secure
  the secure
  @return the cookie