Skip to content
Browser internals·Beginner·Conceptual·1 min read

Does clearing browser cookies also clear localStorage?

Short interview answer

Not necessarily — they are separate storage mechanisms with separate browser UI and APIs, though a full 'clear site data' action typically removes both.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Client-side storage

Related questions