Reputation: 31
i have a phonegap application, in which i use inAppBrowser to open other sites. And i need to clean cookies after user logout or after closing inAppBrowser. But inAppBrowser hasn't such method. Can someone help me to solve my problem?
Upvotes: 2
Views: 1120
Reputation: 14550
You can clear InAppBrowser cookies using the "clearsessioncache" attribute:
window.open("some.url.com", "_blank", "location=no,clearsessioncache=yes");
However, it appears that this flag is only available on Android. That might be a deficiency in PhoneGap, or perhaps only Android preserves InAppBrowser cookies; I'm not sure on that point.
Upvotes: 2