Stores key-value data items as browser cookies.
string
, path: string|null
= null
)string
- Key to identify the cookiestring|null
- "Pathname" to store the cookiestring
): string|null
string
- Key to identify the cookiestring|null
- The cookie data or null if it is not foundboolean
boolean
- True if enabled, false otherwisestring
, data: string
, expiration: Date|null
= null
, path: string|null
= null
)string
- Key to identify the cookiestring
- Data value to set for the cookieDate|null
- Expiration date of the datastring|null
- "Pathname" to store the cookieThis service uses browser cookies
to store data in the form of key-value pairs. An optional expiration
date can be
supplied for the cookie and a path
can be used to reduce the chances of name
clashes with cookies from other sources.
Cookies have a storage size limit that varies between browsers but is often around 4KB. Consider using web storage if you need to store data beyond this size.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.