Module: CookieManipulator

Methods

(static) createCookie(namenon-null, valuenon-null, options)

Function to create single cookie
Parameters:
Name Type Description
name String name of cookie [REQUIRED]
value String value [REQUIRED]
options Object options {expires: 7, path: ''} // expires is time in days
Source:

(static) getAllCookies() → {Object}

Function to create single cookie
Parameters:
Type Description
String options {expires: 7, path: ''} // expires is time in days
Source:
Returns:
- cookies object
Type
Object

(static) getCookie(namenon-null, options)

Function to create single cookie
Parameters:
Name Type Description
name String name of cookie [REQUIRED]
options Object options {expires: 7, path: ''} // expires is time in days
Source:

(static) removeCookie(namenon-null, options)

Note: Removing unexisting cookie does not raise any exception nor return any value
Parameters:
Name Type Description
name String name of cookie [REQUIRED]
options Object options {expires: 7, path: ''} // expires is time in days
Source: