Despite developed front end programs with the witness of 30k+ lines of code and several projects, big or small, mastering React framework and its pals (like Zustand, vite, etc.) when I was asked about some basic concepts, I felt so dumbed that lead me here to take some notes.
Cookie, what a corny term. As I can remember, I have been working with front end techs without Cookies for a long time, which is almost cleared from my memory. Technically, it is a storage with a very little capacity (4 kB) can be manipulated from both front end and back end, except for those with HTTP only attribute.
I was asked about the fields of Cookie and I fail to put forth an answer. Here’s the answer:
- Core Fields: Name=Vlue, Expires, Max-Age, Domain, Path, Secure & HttpOnly,
- Expanded Fields: SameSite, Partioned, Priority, SameParty.
I will emphasize core fields in details as it matters the security and being of a cookie.
(more…)