Why do websites use cookies?
Show answer & explanation
Answer: Remember login state and cart items
Render page images and fonts — Wrong. Cookies are small text files, not rendering tools. They store data like login state, shopping cart contents, and language settings to personalize your experience.
Remember login state and cart items ✓ — Correct! Cookies are small text files your browser stores when you visit a website. They remember your login status (so you stay signed in), your shopping cart, and your preferences. HTTP is 'stateless'—each request is independent. Cookies give websites a 'memory' so they recognize returning users. Some track behavior for ads (third-party cookies). You can clear them anytime!
Block malicious scripts and attacks — Wrong. Cookies are not security tools for blocking attacks. Their main job is remembering user information across visits, though secure cookies can help verify identity.
More Technology questions
- Why can a satellite redness index flag rusting Arctic rivers but still fail to tell which streams are chemically hazardous?
- A service publishes a fresh random number every minute, plus a public log in which each entry carries a fingerprint of the entry before it. What does that chaining add?
- Why can Cloudflare's lava-lamp camera feed improve encryption even though the cryptographic software that consumes it is deterministic?
- If an attacker learns a pseudorandom generator's seed and algorithm after watching several outputs, why can the later outputs become reconstructable?
- If a phone game shuffle and a physical noise source both look messy, what makes only one useful for security against someone who knows the code?
- At parking-lot speed, why do quiet EVs need alert sounds before tire noise helps?