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

Chapter 35. Cookies

Cookies are easily one of the “dark horses” of JavaScript. They are snippets of information the browser stores for the Web domain name they come from. They can be exceptionally useful, if the client browser has them enabled. Not everybody likes them, however; not the developer, not the end-user.

Cookies can store strings for the next time a site from that particular domain appears again in the browser. They thus offer what almost no other feature of JavaScript offers—persistent storage of data. However, quite a few businesses have misused cookies in the past. Hence, not everybody trusts them. Often it's better to use server-side code for business purposes.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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