mirror of
https://github.com/bez4pieci/Phonegap-Cookies-Plugin
synced 2026-04-18 00:03:40 +08:00
0e279c1a8a0a9d014dabc482b0e40c3f465ccda6
Phonegap Cookies Plugin
Phonegap/Cordova plugin that allows you to clear cookies of the webview. Use it for logging out the user, restart analytics session etc.
Why a plugin?
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.
Installation
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
Usage
window.cookies.clear(function() {
console.log('Cookies cleared!');
});
Languages
Java
35.8%
Objective-C
34.5%
JavaScript
29.7%
