WEBVTT

00:00:00.000 --> 00:00:06.000
Why can a website remember a setting on this device?

00:00:06.000 --> 00:00:13.000
Browser storage can keep small pieces of site data locally.

00:00:13.000 --> 00:00:18.000
Understand the browser memory.
6 storage basics.

00:00:18.000 --> 00:00:30.000
Start with key and value pairs
Web Storage lets site scripts save simple named values.
Named key · Stored value · Site script access

00:00:30.000 --> 00:00:42.000
Local storage can persist
Data can remain when the browser is closed and reopened.
Return visit · Saved preference · Persistent local data

00:00:42.000 --> 00:00:54.000
Session storage follows the tab
It is separated by origin and tab, and ends when that tab closes.
Tab context · Same origin · Tab closes

00:00:54.000 --> 00:01:06.000
It is not automatically a backup
People can clear site data and storage may be unavailable.
Cleared browser data · Storage limits · Missing saved setting

00:01:06.000 --> 00:01:18.000
Keep sensitive data protected
Script-readable local storage is unsuitable for secrets.
No secret passwords · No sensitive records · Secure system design

00:01:18.000 --> 00:01:30.000
Test a fresh browser state
A site should handle missing preferences sensibly.
No saved data · Useful default · Records stored safely

00:01:30.000 --> 00:01:39.000
Your checklist
Start with key and value pairs · Local storage can persist · Session storage follows the tab · It is not automatically a backup · Keep sensitive data protected · Test a fresh browser state

00:01:39.000 --> 00:01:47.000
Keep local preferences separate from important records.
jerseyweb.je
