2021-09-07
2520
#vanilla javascript
Prateek Surana
65366
Sep 7, 2021 â‹… 9 min read

A JavaScript developer’s guide to browser cookies

Prateek Surana I'm a frontend engineer currently building Devfolio who likes to build awesome products and write about React, JavaScript, and TypeScript.

Recent posts:

Understanding Redux: A Tutorial With Examples

Understanding Redux: A tutorial with examples

This guide provides a foundational understanding of Redux and why you should use it for state management in a React app.

Neo Ighodaro
Oct 17, 2024 â‹… 12 min read
Inertia Js Adoption Guide Overview Examples And Alternatives

Inertia.js adoption guide: Overview, examples, and alternatives

Inertia.js enables you to build SPAs with a traditional backend framework and a modern JavaScript frontend with server-side routing.

Rahul Chhodde
Oct 17, 2024 â‹… 13 min read
The Best Node.js Web Scrapers For Your Use Case

The best Node.js web scrapers for your use case

Discover some of the best Node.js web scraping libraries, including Axios and Superagent, and techniques for how to use them.

Juan Cruz Martinez
Oct 17, 2024 â‹… 6 min read
Stylized JavaScript logo with bold letters representing JavaScript, illuminated by a bright light from the center.

Six things you may not know about JavaScript

So, you’re a JavaScript developer? Nice to hear — what do you think this code returns? And yeah, it’s a […]

Lewis Cianci
Oct 16, 2024 â‹… 7 min read
View all posts

4 Replies to "A JavaScript developer’s guide to browser cookies"

  1. Probably one of the best articles I have read! (in a long while)

    Good job and great explanation of how cookies defer from Local- & session storage. Learned a lot of new concepts here including security vulnerabilities regarding cookies and how to properly use cookie attributes.

  2. Thank you for this comprehensive article. Would you know if browsers, iOS Safari in particular, would start treating a cookie set in js as an http cookie if the server updates that cookie in a future request? For instance by changing the expiry date.

Leave a Reply