1 | The JavaScript property document.cookie holds cookies that are valid for this document and can be used to either set or retrieve cookie values |
2 | Suppose we have a page with a form that sets values and stores for a certain length of time. This is processed entirely on the client by storing values in appropriate cookie entries |
3 | Cookies may be read on other pages (consistent with PATH and DOMAIN) and if present are used to define JavaScript variables that are used in "parameterized HTML" |
4 | Note document.cookie is set to a single cookie value but when read gives all cookies for this document! |