protected void cancelCookie(HttpServletRequest request, HttpServletResponse response) {
		logger.debug("Cancelling cookie");
		Cookie cookie = new Cookie(cookieName, null);
		cookie.setMaxAge(0);
		cookie.setPath(getCookiePath(request));
		if (cookieDomain != null) {
			cookie.setDomain(cookieDomain);
		}
		response.addCookie(cookie);
	}
protected void cancelCookie(HttpServletRequest request, HttpServletResponse response) {
		logger.debug("Cancelling cookie");
		Cookie cookie = new Cookie(cookieName, null);
		cookie.setMaxAge(0);
		cookie.setPath(getCookiePath(request));
		if (cookieDomain != null) {
			cookie.setDomain(cookieDomain);
		}
		response.addCookie(cookie);
	}
protected void cancelCookie ( HttpServletRequest request , HttpServletResponse response ) { logger . debug ( "Cancelling cookie" ) ; Cookie cookie = new Cookie ( cookieName , null ) ; cookie . setMaxAge ( 0 ) ; cookie . setPath ( getCookiePath ( request ) ) ; if ( cookieDomain != null ) { cookie . setDomain ( cookieDomain ) ; } response . addCookie ( cookie ) ; }
Sets a "cancel cookie" (with maxAge = 0) on the response to disable persistent
logins.
Sets a cancel cookie ( with maxAge = 0 ) on the response to disable persistent logins .