Code example for CookieStore

Methods: removeAll

0
		manager = new java.net.CookieManager();
		CookieSyncManager.createInstance(mContext);
		 
		/** reset all the cookies **/ 
		CookieStore store = manager.getCookieStore();
		store.removeAll();
 
	    android.webkit.CookieManager cookieManager = android.webkit.CookieManager.getInstance();
	    cookieManager.removeAllCookie();
	    cookieManager.setAcceptCookie(true); 
	} 
	 
 
	public void addCookies(String url, String key, String value) {
		if ((url == null) || (key == null) || (value == null)) {
			return; 
		} 
 
		String domain = NetHelper.getDomain(url);
		 
Stop searching for code, let great code find you!  Add Codota to your java IDE