2017 © Pedro Peláez
 

project alo-cookie

A simple JavaScript cookie manager

image

alorel/alo-cookie

A simple JavaScript cookie manager

  • Wednesday, July 22, 2015
  • by Alorel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 170 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Logo, (*1)

License, (*2)

What is this sorcery ?

It's a simple class to manipulate cookies in an object-oriented manner., (*3)

Usage

Get all document cookies

var cookies = AloCookie.getAll();
// {name1:value1, name2:value2 ...}
var cookie = new AloCookie("foo");
cookie.value = "bar";
cookie.expire = 3600; //in 1 hour. Defaults to expire at the end of the session
cookie.domain = "www.example.com"; //defaults to window.location.hostname
cookie.path = "/cart/checkout"; // Defaults to "/"
cookie.secure = true; // true sends the cookie only via HTTPS. Defaults to window.location.protocol == "https:"
cookie.save()
var cookie = new AloCookie("foo"),
cookieExists = cookie.exists();
var cookie = new AloCookie("foo");
cookie.remove();

The Versions

22/07 2015

dev-master

9999999-dev https://github.com/Alorel/alo-cookie

A simple JavaScript cookie manager

  Sources   Download

GPL-3.0+

javascript cookie manager standalone

22/07 2015

1.0.2

1.0.2.0 https://github.com/Alorel/alo-cookie

A simple JavaScript cookie manager

  Sources   Download

GPL-3.0+

javascript cookie manager standalone

18/07 2015

1.0.1

1.0.1.0 https://github.com/Alorel/alo-cookie

A simple JavaScript cookie manager

  Sources   Download

GPL-3.0+

javascript cookie manager standalone

13/07 2015

1.0

1.0.0.0 https://github.com/Alorel/alo-cookie

A simple JavaScript cookie manager

  Sources   Download

GPL-3.0+

javascript cookie manager standalone