Socket
Book a DemoInstallSign in
Socket

cordova-plugin-cookie-manager

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-cookie-manager

Provides methods to manage cookies from your app's JavaScript code. At the time of writing, the only available method in this plugin clears all cookies.

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
23
-48.89%
Maintainers
1
Weekly downloads
 
Created
Source

PhoneGap/Cordova plugin that allows you to clear cookies from WebViews. You can use it for stuff like logging out users, restarting analytics sessions and the like.

Why a plugin?

In a Cordova/PhoneGap app document.cookie is empty, since index.html and all other files are loaded with the file:// protocol. Cordova/PhoneGap manages cookies internally, but doesn't expose any means for clearing them.

Installation

CookieManager is compatible with Cordova Plugman and ready for the PhoneGap 3.0 CLI, here's how it works with the CLI:

$ cordova plugin add https://github.com/teunsteenbekkers/cordova-plugin-cookie-manager.git
$ phonegap local plugin add https://github.com/teunsteenbekkers/cordova-plugin-cookie-manager.git

Usage

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

Bitdeli Badge

Keywords

cordova

FAQs

Package last updated on 18 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.