http://virtuadata.net/how-to-service-your-own-computer/
Data storage is an essential function for applications that want to monitor user progress, enable login or perform other crucial functions. There are many ways to store user data, but the most effective solution depends on the problem you’re trying solve.
Local storage is a great option to store small amounts of data, such as user registration and login information that don’t require instant syncing. It’s only accessible through clients-side software and is limited by the size of a hard drive. Server-side scripts cannot manipulate it. Additionally local storage is susceptible to loss of data if the application is removed or the device is reset.
The database storage is ideal to store large amounts of data which may need to edit. It lets you keep records of your users’ data by storing their unique identifier in a database table and reference that identifier every time you access the database. This approach is more complicated than other options, however it is a great option for large enterprise apps or large apps that need to keep track of user data over multiple sessions.
WebView2 stores browser data using UDFs. This includes cookies, permissions and cached resources. This data expires based upon the user’s Web and Application Activity settings. It can be deleted manually using actions on Google. To store additional information about users you must define a custom UDF location with write access to the WebView2. See the WinUI 3.cs file in the WebView2Samples repo for an example of how to do this with ICoreWebView2Environment7.