Writing Cookies : Cookie « Development « JavaScript Tutorial






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;








4.4.Cookie
4.4.1.JavaScript and Cookies
4.4.2.Reading Cookies
4.4.3.Writing Cookies
4.4.4.Create a cookie and read it back
4.4.5.Make cookie using Javascript
4.4.6.Delete all cookies
4.4.7.Read cookie value