Cookie values can be created, modified, and set.
When you write a cookie, its attributes must be written as a name/value pair.
To set a cookie value, you first create a cookie and assign it a name.
Then you must set each individual attribute for the new cookie.
The expires attribute must have a valid date string.
document.cookie = "name=" + form.cookie.value + "; expires=" + month;