DEV Community

Cover image for Explain Me Cookies Like I Am 9
Foxy4096
Foxy4096

Posted on

Explain Me Cookies Like I Am 9

Use your knowledge,

I am kinda busy these days.

Peace ✌

Top comments (8)

Collapse
 
martinromario55 profile image
Martin Romario Ntuwa

So image you go to school everyday with your bag fill with books. The books are heavy and will make you tired when you carry them everyday.
So the school offers you a locker name cookie. With this locker, you can keep your books, so that you don't need to carry them all the time, and when you need to go for another subject, you just pick the corresponding book from your locker.

This is what cookies do. Rather than fill in your information all the time when you visit a site, like your daily social media sites. Cookies help the browser remember that you've used that site before and fetch your information.
Just like a school locker has a lock and a key. These cookies are protected and other people cannot access your private information.

School lockers also have vents, so the school and some friends at school may drop in letters and memos to certain activities you might be interested in, related to school.
Cookies are also used by advertisement engines like google ads to show you information you might have googled or a site you might have visited. So don't be surprised if you google sneakers, and the next ads you see are related to shoes.

Collapse
 
foxy4096 profile image
Foxy4096

Here You Go
cookie

Collapse
 
rajasekharguptha profile image
Rajasekhar Guptha

Nice 👏🏻❤️

Collapse
 
webdev710 profile image
webdev-710

Are cookies carried to the server when we send normal http request?

Collapse
 
martinromario55 profile image
Martin Romario Ntuwa

The browser sends all non-expired cookies pertaining to the domain in the HTTP header of the HTTP request for the page.

Each cookie is a key/value pair separated by an equals sign, with the pairs separated by semicolons.

Collapse
 
foxy4096 profile image
Foxy4096

Explain me cookie and get a cookie 🍪

or a biscuit 🍘

Collapse
 
planet_cbx profile image
Charlène Bonnardeaux

Maybe you can win time without post this article if you are so busy 🙃

Collapse
 
foxy4096 profile image
Foxy4096

Just took me 7 seconds to write this dumb post, very small amount, but we all know
Time is time, it never waits for anyone.