• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Setting Cookie Data

You set, get, and delete cookie data by working with the Document object's cookie property. Remember, however, that cookie data is in no way tied to an individual document. Instead, you can work with your cookie data from within any document on your site (although there are some limitations on this; see "Specifying the Path," later in this section).

To set a cookie, you assign a specially formatted string to the cookie property:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint