Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

A JavaScript developer’s guide to browser cookies

Blog post from LogRocket

Post Details
Company
Date Published
Author
Prateek Surana
Word Count
2,743
Company Posts That Month
98
Language
-
Hacker News Points
-
Post removed?
No
Summary

JavaScript developers can learn about browser cookies and their functionalities, including how they work, how to access and manipulate them from both client and server sides, and how to control their visibility using attributes. Cookies, small data pieces stored in browsers, are created during HTTP requests and are used for session management, personalization, and user behavior tracking. However, due to performance issues, modern web development favors Web Storage APIs for client-side storage. Cookies can be set and accessed via JavaScript on the client-side using the Document property or through server-side manipulation using request and response headers. Important cookie attributes include Domain, Path, Expires, Secure, HttpOnly, and SameSite, which control aspects such as security, accessibility, and lifespan. Concerns about third-party cookies tracking users across websites have led to browser features like enhanced tracking protection and state partitioning, while new APIs are under development to balance privacy with functionality.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 1 100 23 18 +108%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.