Technical
Local Storage
A browser API that lets websites store data on your device with no expiration date — similar to cookies but with more capacity.
Local storage (or Web Storage) is a browser API that allows websites to store key–value data on the user's device. Unlike cookies, local storage data is not sent with every HTTP request and has no expiration date.
Characteristics
| Local Storage | Cookies | |
|---|---|---|
| Capacity | ~5–10 MB | ~4 KB |
| Sent with requests | No | Yes |
| Expiration | None (persists until cleared) | Can be set |
| Accessible by | JavaScript only | JavaScript and server |
Privacy Implications
When used for tracking purposes, local storage is subject to the same consent requirements as cookies under the ePrivacy Directive Article 5(3) — the directive covers any storage of information on the user's device.