Download the PHP package alorel/alo-cookie without Composer
On this page you can find all versions of the php package alorel/alo-cookie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alorel/alo-cookie
More information about alorel/alo-cookie
Files in alorel/alo-cookie
Download alorel/alo-cookie
More information about alorel/alo-cookie
Files in alorel/alo-cookie
Vendor alorel
Package alo-cookie
Short Description A simple JavaScript cookie manager
License GPL-3.0+
Homepage https://github.com/Alorel/alo-cookie
Package alo-cookie
Short Description A simple JavaScript cookie manager
License GPL-3.0+
Homepage https://github.com/Alorel/alo-cookie
Please rate this library. Is it a good library?
Informations about the package alo-cookie
What is this sorcery ?
It's a simple class to manipulate cookies in an object-oriented manner.
Usage
Get all document cookies
var cookies = AloCookie.getAll();
// {name1:value1, name2:value2 ...}
Setting cookie "foo"
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()
Check if cookie called "foo" exists
var cookie = new AloCookie("foo"),
cookieExists = cookie.exists();
Deleting cookie "foo"
var cookie = new AloCookie("foo");
cookie.remove();
All versions of alo-cookie with dependencies
PHP Build Version
Package Version
No informations.
The package alorel/alo-cookie contains the following files
Loading the files please wait ....