Go to file
2023-02-10 09:27:30 +08:00
src Update Android implementation 2016-10-07 09:53:18 +02:00
www Version 0.0.1 2013-12-02 16:01:38 +01:00
.gitignore Version 0.0.1 2013-12-02 16:01:38 +01:00
LICENSE Initial commit 2013-12-02 06:47:08 -08:00
package.json 改名修正添加插件报错的问题 2023-02-10 09:27:30 +08:00
plugin.xml 改个名 2023-02-10 09:15:20 +08:00
README.md 改名修正添加插件报错的问题 2023-02-10 09:27:30 +08:00

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:

$  cordova plugin add git+https://m.shuto.cn:8681/public/Phonegap-Cookies-Plugin.git

Usage

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