- HTML5 Web SQL seems abandoned, so I will not document this.
- The local storage is stored "forever", that is, until the application or user explicitly clears the data.
- Saving a session is only saved until the end of the browser session (some browsers save data in a crash situation)
Clearing the cache should not affect the stored data, but clearing the cookies can destroy it.
source share