Deleting all cookies in webview using Titanium API
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。