documentcookie
Document.cookie is a property of the Document interface in web browsers that provides read and write access to cookies associated with the current document. It functions as both a getter and a setter for cookies that are accessible to the script’s origin and path.
Reading cookies: Accessing document.cookie returns a single string containing all cookies visible to the current script.
Writing cookies: Assigning to document.cookie creates or updates a cookie. The value should be a string in
Limitations and security: Cookies are sent with every HTTP request to the matching domain, which can affect