Guides ยท Technology
Browser Storage Basics
Pick the right web storage option
This guide covers browser storage options: cookies for small cross-request data, local/sessionStorage for simple key-values, and IndexedDB for structured larger data, plus security considerations for each.
- browser storage
- cookies
- localStorage
- sessionStorage
- indexeddb
Cookies
Sent with requests; small; use HttpOnly/Secure; avoid storing secrets in JS-accessible cookies.
Local vs sessionStorage
Key-value storage in the browser; session clears on tab close; avoid sensitive data.
IndexedDB
Async structured storage for larger data; needs feature detection and error handling.
Security choices
Prefer HttpOnly cookies for auth tokens; validate and handle storage failures gracefully.
Keep Exploring
Guides
API Basics
APIs let software request data or actions from other systems through defined endpoints and responses.
Comparison
RAM vs Storage
RAM handles what your device is actively working on, while storage keeps apps, files, and system data available over time.
How it works
Global Positioning System
GPS uses timing signals from satellites to calculate a receiver's position on Earth.
What it is
Blockchain
A blockchain is a distributed ledger secured by cryptography and consensus nodes.