http://virtuadata.net/technologies-for-everyday-usage/
Data storage is a crucial feature for applications that wish to track user progress, enable login or perform other vital functions. There are many ways to store information about users, but the most effective solution is determined by the issue you’re trying solve.
Local storage is ideal for storing small amounts of data that don’t require instant syncing, for example, login or registration information for users. However, it’s restricted by the size of the hard drive and can only be used with code written by the client (and isn’t manipulated by server-side scripts). Additionally local storage is susceptible to data loss if the application is deleted or the device is reset.
Database storage is a great option for storing large amounts of data that might need to be edited. It enables you to keep the track of your users’ data by keeping their unique identifiers in a database table and using that identifier whenever you access the database. This is more complex than other options for data storage, but it can be an ideal choice for enterprise or large-scale apps that require storage of user data over multiple sessions.
WebView2 utilizes UDFs to store browser data, such as cookies, permissions, and cached resources. This data expires in accordance with the user’s Web & App Activity settings. It is also able to be manually cleared by the user through actions on Google. You must specify the UDF that has Write access to the WebView2 to save additional user data. See the WinUI 3.cs file in the WebView2Samples repo for an example of how to do this with ICoreWebView2Environment7.