This -should- disable all cookies:

CookiePolicy.registerCookieSpec(CookiePolicy.DEFAULT, CookiePolicy.IGNORE_COOKIES);

References:

You'll need to set it back to RFC_2109 when you're done since it's static.