public static void addCookieWebUser(HttpServletRequest request,HttpServletResponse response,String webUser){
  Cookie cookie=new Cookie(COOKIE_NAME,webUser);
  cookie.setComment("Adempiere Web User");
  cookie.setPath(request.getContextPath());
  cookie.setMaxAge(2592000);
  response.addCookie(cookie);
}

public static void addCookieWebUser ( HttpServletRequest request , HttpServletResponse response , String webUser ) { Cookie cookie = new Cookie ( COOKIE_NAME , webUser ) ; cookie . setComment ( "Adempiere Web User" ) ; cookie . setPath ( request . getContextPath ( ) ) ; cookie . setMaxAge ( 2592000 ) ; response . addCookie ( cookie ) ; }
add cookie with web user
