question: protected int checkKnownCookie ( ) { int retVal = 0 ; debug . message ( "{}.checkKnownCookie:" , ADAPTIVE ) ; HttpServletRequest req = getHttpServletRequest ( ) ; if ( req != null ) { Cookie cookie = CookieUtils . getCookieFromReq ( req , knownCookieName ) ; if ( cookie != null ) { if ( knownCookieValue . equalsIgnoreCase ( CookieUtils . getCookieValue ( cookie ) ) ) { retVal = knownCookieScore ; } } } if ( knownCookieValue == null ) { knownCookieValue = "1" ; } if ( knownCookieSave ) { postAuthNMap . put ( "COOKIENAME" , knownCookieName ) ; postAuthNMap . put ( "COOKIEVALUE" , knownCookieValue ) ; } if ( ! knownCookieInvert ) { retVal = knownCookieScore - retVal ; } return retVal ; }
target:  Check to see if the client has a cookie with optional value