src/main/java/js/servlet/Cookies.java
public void add(String name, String value) {
		Params.notNullOrEmpty(name, "Cookie name");
		Params.notNull(value, "Cookie value");
		Cookie cookie = new Cookie(name, value);
		cookie.setPath("/");
		httpResponse.addCookie(cookie);
	}
public void add(String name, String value) {
		Params.notNullOrEmpty(name, "Cookie name");
		Params.notNull(value, "Cookie value");
		Cookie cookie = new Cookie(name, value);
		cookie.setPath("/");
		httpResponse.addCookie(cookie);
	}
Add cookie to HTTP response of the current request context. Override cookie value if already exists.

@param name cookie name, not null or empty,
@param value cookie value, not null or empty.
@throws IllegalArgumentException if <code>name</code> argument is null or empty.
@throws IllegalArgumentException if <code>value</code> argument is null or empty.