CookieSyncManager.createInstance(this);

CookieManagercookieManager=CookieManager.getInstance();

cookieManager.setAcceptCookie(true);

for(inti=0;i<cookieArray.length;i++){//cookieArray是多个cookie的数组变量

cookieManager.setCookie(mCurrentURL,cookieArray[i]+";MaxAge=3600"+";Domain=.163.com"+";Path=/");

}