Setting a Cookie

Cookies are created by setting the document.cookie property equal to a

properly formatted string. When you create a cookie, you must specify

at least its name and its value. Additionally, you can specify some

other characteristics of the cookie. Here's a full list:

* name=value:

What’s wrong? The new clean desk test
You Might Like
Join the discussion
Be the first to comment on this article. Our Commenting Policies