JavaScript string object document.cookie holds cookies that are valid for this document and can be used to either set or retrieve cookie values |
In WebWisdom example, we have pages with a form that sets values of parameters common to several foils and stores for a certain length of time. This is entirely processed client-side with JavaScript interpreting form and storing values in appropriate cookie entries |
These cookies are read on other pages (consistent with PATH and DOMAIN) and if present used to define JavaScript variables that are used in "parameterized HTML" |
Note document.cookie is set to a single cookie value but when read gives all cookies for this document! |