public static void removeCookie ( HttpServletRequest request , HttpServletResponse response , String cookieName , boolean secure , boolean contextOnlyPath ) { addCookie ( request , response , cookieName , "Removed" , null , 0 , secure , contextOnlyPath ) ; }
Removes a cookie by adding it with maxAge of zero .