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.
Top comments (8)
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.
Here You Go
![cookie](https://res.cloudinary.com/practicaldev/image/fetch/s--QNZfJrgE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://upload.wikimedia.org/wikipedia/commons/f/f1/2ChocolateChipCookies.jpg)
Nice 👏🏻❤️
Are cookies carried to the server when we send normal http request?
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.
Explain me cookie and get a cookie 🍪
or a biscuit 🍘
Maybe you can win time without post this article if you are so busy 🙃
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.