I understand the textbook definition/concept of localstorage and sessionstorage. I really should write, "I believe I do". My 2 questions are as follows:
- Can you provide a clear example of when one (localstorage/session storage) should be used over the other? Basically, what data should be stored in the localstorage and what data would be stored in the sessionstorage? I have read a list of country codes could go into the local storage, I ponder if this is really right. What would happen if the country list changes, wouldn't the old list always display and how would one refresh the list upon a change?
- What happens when the localstorage and/or sessionstorage hits the max mb for the browser?