• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 35. Cookies > The Syntax of Cookies

The Syntax of Cookies

Setting a cookie in JavaScript includes one required section and several optional ones:

document.cookie = "name=value[; expires=GMTDate][; domain=domainName] [; path=pathName][; secure]"


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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