Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

delete-all-cookies

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delete-all-cookies

Removes all cookies affecting the current site/domain/path

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
305
decreased by-4.39%
Maintainers
1
Weekly downloads
 
Created
Source

delete-all-cookies

This library exposes a function to clear all cookies that affect the currently loaded web page.

This is accomplished by iteratively removing all cookies for the current path, then the parent path, and so on, for the current domain, parent domain, and so on, as well as cookies without explicit path and domain specification.

Sample interactive usage:

// in source:
window.clearCookies = require('delete-all-cookies')

// then, in console:
clearCookies()

License

Released under the MIT license.

The code is derived from several Stack Overflow answers to the question of clearing all cookies affecting the current web page.

FAQs

Package last updated on 27 Sep 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc