Phonegap plugin to clear cookies
Java Objective-C JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit b175345 Oct 7, 2016
Permalink
Failed to load latest commit information.
src Update Android implementation Oct 7, 2016
www Version 0.0.1 Dec 2, 2013
.gitignore Version 0.0.1 Dec 2, 2013
LICENSE Initial commit Dec 2, 2013
README.md Update README Dec 5, 2013
package.json Rename npm package Oct 7, 2016
plugin.xml Resolves #2 Feb 10, 2014

README.md

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!');
});

Bitdeli Badge