Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a03ba6d2f2
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (13 sloc) 0.474 kb

jar

Simple cookie handling:

cookieValue = jar.cookie('chocolateChip');
jar.cookie('chocolateChip', 'new cookie value');

It's also easy to set cookie options:

jar.cookie('topSecret', 'this cookie will self-destruct in 5 days', { expires: 5 });

Usage with Ender

After you install Ender, include jar in your package:

ender add jar

This will namespace the package under the $ variable:

$.cookie(...);
Jump to Line
Something went wrong with that request. Please try again.