You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each instance of a WebView2 control is associated with a user data folder (UDF).
81
+
Each instance of a WebView2 control is associated with a WebView2 session.
82
82
83
-
Each WebView2 session must have a UDF. There's only 1 active UDF per WebView2 session.
84
-
85
-
There is at least one UDF per app WebView2 session. It's possible for your host app to overlap them, by specifying a custom UDF location.
86
-
Or, you can have one UDF per machine. This depends on how your host app configs the UDF.
87
-
88
-
A UDF can be either per user, if the app was installed per-user.
89
-
If the host app is installed per-user, each UDF is unique to a user, if not otherwise specified.
83
+
* Each WebView2 session has exactly one UDF.
84
+
* A UDF can only have at most one WebView2 session at a time.
90
85
86
+
A WebView2 control shares its WebView2 session with any other WebView2 control that uses the same UDF. This is true whether the WebView2 controls are in the same host app or different host apps. However, a UDF may only be shared among host apps that are in the same logon session (more specifically, only one HDESKTOP). See [Process model for WebView2 apps](../concepts/process-model.md).
To find out what the user data folder (UDF) location was set to, use the `UserDataFolder` property. This read-only property returns the UDF location for the WebView2 app.
435
+
To find out what the user data folder (UDF) location was set to, use the `CoreWebView2Environment.UserDataFolder` property. This read-only property returns the UDF location for the WebView2 session.
Instead of deleting the user data folder (UDF), clear browsing data from the UDF. For example, clear user data and history when a user signs out.
550
+
Instead of deleting the entire user data folder (UDF), you can use WebView2 APIs to clear specific browsing data from the UDF. For example, you can clear user data and history when a user signs out of your app.
553
551
554
552
See [Clear browsing data from the user data folder](clear-browsing-data.md).
0 commit comments