Allows add-ons to store, retrieve and erased cookies against the host JIRA / Confluence. These cannot be seen by other add-ons.
Methods
-
erase(name) -
Remove the given cookie.
Parameters:
Name Type Description nameString the name of the cookie to remove
-
read(name, callback) -
Get the value of a cookie.
Parameters:
Name Type Description nameString name of cookie to read
callbackfunction callback to pass cookie data
-
save(name, value, expires) -
Save a cookie.
Parameters:
Name Type Description nameString name of cookie
valueString value of cookie
expiresNumber number of days before cookie expires