Skip to content

Why do websites use cookies?

Show answer & explanation

Answer: Remember login state and cart items

Render page images and fontsWrong. 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 itemsCorrect! 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 attacksWrong. Cookies are not security tools for blocking attacks. Their main job is remembering user information across visits, though secure cookies can help verify identity.

Go deeper: HTTP · HTTP cookie
Play today's quiz — new questions daily

More Technology questions