protected void addAllCookies(HashMap<String, String> add){
		for(Entry<String, String> entry : add.entrySet()){
			//filter out special keys
			if(entry.getKey().equalsIgnoreCase("httponly")
					|| entry.getKey().equalsIgnoreCase("secure")
					|| entry.getKey().equalsIgnoreCase("expires")
					|| entry.getKey().equalsIgnoreCase("path")
					|| entry.getKey().equalsIgnoreCase("domain")
					|| entry.getKey().equalsIgnoreCase("max-age")){
				continue;
			}
			//put the rest
			cookies.put(entry.getKey(), entry.getValue());
		}
	}