save data in appdata web app code example
Example: uwp roaming data sample
ApplicationDataContainer roamingSettings = ApplicationData.Current.RoamingSettings;
roamingSettings.Values["lastViewed"] = DateTime.Now;
var lastViewed = (DateTime)roamingSettings.Values["lastViewed"];