From 9e40dca67a897022da18acab822dc4c1ecd05a86 Mon Sep 17 00:00:00 2001 From: Rob Levin Date: Sat, 1 Jun 2019 09:19:42 -0700 Subject: [PATCH] [HTML] Point out that local/session store, and cookies may be invalidated by user (#191) --- questions/html-questions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/questions/html-questions.md b/questions/html-questions.md index f95fbc21e..cc5a8011b 100644 --- a/questions/html-questions.md +++ b/questions/html-questions.md @@ -111,6 +111,8 @@ All the above-mentioned technologies are key-value storage mechanisms on the cli | Capacity (per domain) | 4kb | 5MB | 5MB | | Accessibility | Any window | Any window | Same tab | +_Note: If the user decides to clear browsing data via whatever mechanism provided by the browser, this will clear out any `cookie`, `localStorage`, or `sessionStorage` stored. It's important to keep this in mind when designing for local persistance, especially when comparing to alternatives such as server side storing in a database or similar (which of course will persist despite user actions)._ + ###### References * https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies