Level 126 Level 128
Level 127

[Quiz] Cookies & Local Storage

9 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Size and number limitations
Each cookie can be up to 4 KB
Cookie format
Key-value pair
Security limitations on cookies
same origin policy applies
Cookies can be set to expire
How can cookies be used to log you out of a page after a certain time?
Cookies can be manipulated because
they are stored as a file on the client
Uses of cookies
authentication, user tracking, maintaining states (e.g. preferences, shopping cart)
Cookies can be persistent:
last longer than the browsing session
Local storage: differences from cookies
Can store more (up to 5GB of data depending on browser), more secure, session storage: confined to browser session, local storage: longer data persistence
Local storage: use
(localStorage | sessionStorage).setItem()