public static void setStateParam(String name, String value, HttpServletRequest req,
			HttpServletResponse res, boolean httpOnly) {
		setRawCookie(name, value, req, res, httpOnly, -1);
	}
public static void setStateParam ( String name , String value , HttpServletRequest req , HttpServletResponse res , boolean httpOnly ) { setRawCookie ( name , value , req , res , httpOnly , - 1 ) ; }
Sets a cookie.
@param name the name
@param value the value
@param req HTTP request
@param res HTTP response
@param httpOnly HTTP only flag