🗄️
Local Storage
Web Security
Browser storage that can keep data even after you close the tab.
Definition
Local storage is a browser feature that lets websites store data on your device and keep it for a long time.
In plain English
Browser storage that can keep data even after you close the tab.
Why this matters
Why it matters: It can store identifiers for tracking, and it can be exposed if a site has an XSS bug.
Example
Example: A site stores your “theme” setting or a tracking ID in local storage.