Code example for BasicCookieStore

Methods: addCookie

0
		Log.d("Barcode", "doPost " + json);
//		Log.d("Barcode", "user: " + user + " password: " + passwd); 
//		Log.d("Barcode",GlobalVar.getInstance().getCookie().toString()); 
 
		if (GlobalVar.getInstance().getCookie() != null) { 
			CookieStore store = new BasicCookieStore();
			store.addCookie(GlobalVar.getInstance().getCookie());
			httpClient.setCookieStore(store);
		} 
		 
//		if(!preferences.getString("cookie", "").equals("")){ 
////			List<Cookie> cookies = httpClient.getCookieStore().getCookies(); 
////			Editor editor = preferences.edit(); 
////			editor.putString("cookie", cookies.get(0).toString()); 
//			CookieStore store = new BasicCookieStore(); 
//			store.addCookie(preferences.getString("cookie", "")); 
//			httpClient.setCookieStore(store); 
//		} 
		 
 
		try {