private void removeCookiesForRedirects(final HttpServletRequest request,final HttpServletResponse response){
  final Set<String> domains=AuthClientUtils.getCookieDomainsForRequest(request);
  for (  String domain : domains) {
    CookieUtils.addCookieToResponse(response,CookieUtils.newCookie(Constants.AM_LOCATION_COOKIE,"",0,"/",domain));
  }
}

private void removeCookiesForRedirects ( final HttpServletRequest request , final HttpServletResponse response ) { final Set < String > domains = AuthClientUtils . getCookieDomainsForRequest ( request ) ; for ( String domain : domains ) { CookieUtils . addCookieToResponse ( response , CookieUtils . newCookie ( Constants . AM_LOCATION_COOKIE , "" , 0 , "/" , domain ) ) ; } }
clears out the cookie from the user agent so we don ' t leave detritus .
