plugin for cookies

plugin for cookies

http://plugins.jquery.com/cookie/

Usage:

* after the jQuery library

<script src="/path/to/jquery.cookie.js"></script>

Example:

# Create
$.cookie('name', 'value');

$.cookie('name', 'value', { expires: 7 });

# Read
$.cookie();        // Read all
$.cookie('name');  // "vlue" | undefined

# Delete
$.removeCookie('name'); // true | false

# Converters (str -> num)
$.cookie('foo', '42');
$.cookie('foo', Number); // => 42

Creative Commons license icon Creative Commons license icon