Cookie corruption with multiple createHTTPClient Titanium calls
问题 While creating an Android app in Appcelerator's Titanium that involves both webView and background calls, I ran into a problem / bug where the cookies were getting corrupted on multiple createHTTPClient calls. Cookies were originally obtained from the webView: var webview = Ti.UI.createWebView(); webview.url = 'http://www.example.com'; window.add(webview); webview.addEventListener('load', function(e) { cookies = e.source.evalJS("document.cookie"); Titanium.App.Properties.setString('cookies'