cordova-remove-cookies-plugin

0.0.3 • Public • Published

Phonegap/Cordova 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:

$ cordova plugin add cordova-remove-cookies-plugin

Usage

window.cookies.clear(function() {
	console.log('Cookies cleared!');
});

Bitdeli Badge

Package Sidebar

Install

npm i cordova-remove-cookies-plugin

Weekly Downloads

24

Version

0.0.3

License

Apache 2.0

Unpacked Size

10.4 kB

Total Files

8

Last publish

Collaborators

  • ashramko