List of usage examples for android.webkit CookieManager removeSessionCookies
public abstract void removeSessionCookies(@Nullable ValueCallback<Boolean> callback);
From source file:com.jaspersoft.android.jaspermobile.cookie.LollipopCookieManager.java
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override/*from w w w . j a v a 2 s . c om*/ protected void semanticConfiguration(final String targetDomain) { final CookieManager cookieManager = CookieManager.getInstance(); cookieManager.removeSessionCookies(new ValueCallback<Boolean>() { @Override public void onReceiveValue(Boolean value) { cookieManager.setCookie(targetDomain, StringUtils.join(getCookieStore(), ";")); CookieManager.getInstance().flush(); } }); }