Writing Cookies : Cookie : Development JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Development » Cookie »

 

Writing Cookies











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;







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Development
» Cookie