Phonegap/Cordova plugin that allows you to clear cookies of the webview. Use it for logging out the user, restart analytics session etc.
On Phonegap document.cookie
is empty, since index.html and all other files are loaded with file://
protocol.
Phonegap manages cookies internally, but doesn't expose any function for clearing them.
Cookies is compatible with Cordova Plugman and ready for the PhoneGap 3.0 CLI, here's how it works with the CLI:
$ phonegap local plugin add https://github.com/bez4pieci/Phonegap-Cookies-Plugin.git
window.cookies.clear(function() {
console.log('Cookies cleared!');
});