DEV Community

Discussion on: About Browser Cookies

Collapse
 
raypaseur profile image
Ray Paseur

Cookies are typically pointers to a database record on the web server. That database record is typically a collection of pointers to all kinds of "deep background" about the client, some gleaned from direct interaction, some purchased from data vendors, etc. So while it's quite true that the cookie is a small piece of text, it's small size belies the web of highly detailed information that a cookie may bring up about a client.

Two related concepts are Web Storage and the IndexedDB. Both of these store much more expansive data sets on the browser. They can be used for client tracking, as well as providing a better offline experience.
en.wikipedia.org/wiki/Web_storage
en.wikipedia.org/wiki/Indexed_Data...