gitmyhub

jquery-cookie

JavaScript ★ 8.5k updated 9y ago ▣ archived

No longer maintained, superseded by JS Cookie:

An archived jQuery plugin that simplified reading, writing, and deleting browser cookies with one-line calls. No longer maintained, active development moved to its successor library JS Cookie, which works without jQuery.

JavaScriptjQuerysetup: easycomplexity 1/5

This repository is an archived jQuery plugin that made it easier to read, write, and delete browser cookies using JavaScript. Cookies are small pieces of data that websites store in a visitor's browser to remember things like login status, preferences, or session information. This plugin simplified the process of working with them in web pages that used jQuery, a popular JavaScript library from an earlier era of web development.

The project has been abandoned and is no longer maintained. The README prominently notes that active development moved to a separate repository called JS Cookie, which is a rewrite that dropped the jQuery dependency. Anyone looking for a working version of this functionality is directed to that successor project.

For historical reference, the plugin worked by attaching a cookie function to the jQuery dollar-sign object. You could create a cookie with an expiration date, read back its value, or remove it, all with short one-line calls. It also supported storing JSON objects directly as cookie values, and allowed configuring options like which domain path the cookie should be valid for and whether it required a secure HTTPS connection.

This repository has over 8,500 stars largely accumulated during the period when it was the standard way to handle cookies in jQuery-based web projects. It is preserved here for reference but should not be used in new projects. The successor library at the linked repository handles the same use cases without requiring jQuery.

Where it fits