Session State and Settings
In Chapter 14, I introduced some techniques for working with local and remote data sources. In addition to the data that the user creates and interacts with in your application, there are often other values that have to be saved and loaded as well. For example, you may wish to save the contents of a form that the user is working on, so that you can repopulate the form after your application is terminated and then resumed. Or the user may wish to specify certain preferences to use each time they run your application.
Although possible, storing these types of values in an IndexedDB database is not ideal. In ...