[url=http://developer.appcelerator.com/question/129126/deleting-all-cookies-in-webview-using-titanium-api]Deleting all cookies in webview using Titanium API[/url]
这里取得的path就是放置Cookies.binarycookies的文件路径。取得该路径后将其清理为空即可删除Cookies。
var path = Titanium.Filesystem.applicationDataDirectory;
var searchKey = path.search('Documents');
path = path.substring(0,searchKey);
path = path + 'Library/Cookies/'
alert(path);
这里取得的path就是放置Cookies.binarycookies的文件路径。取得该路径后将其清理为空即可删除Cookies。