Replies: 3 comments
-
Hello @nnemkin, In regards to the questions,
|
Beta Was this translation helpful? Give feedback.
-
I may be slightly hijacking this question but in a .NET app I have a similar issue/question with cookies. Maybe, @peiche-jessica you might let us know the concept I should follow. My use case is that I target a website that has session cookies. I have learnt #1167 that session cookies are not saved by any browser, which means, for Webview2 I will need to save and add them back if the user for some reason closes my app. Currently one would need to wait until a CoreWebView2 instance exists before adding cookies. After the instance exists I can then add the cookies and navigate to the site or refresh if the source property is set. Is this intended? I might be being unreasonable, but I feel that the setting up of cookies is better connected to the "environment" of WebView2. |
Beta Was this translation helpful? Give feedback.
-
Hi, @peiche-jessica We are explicitly disposing of the webviews on tab/window close events, and it stops all processes if that’s the last view being closed, and because of this, all the cookies are getting destroyed. Is there any way we can store the cookie data and use it after the last webview closes? |
Beta Was this translation helpful? Give feedback.
-
As far as I understand, cookie storage is shared between all views in the same environment. I'd like to set and inspect cookies in the environment before creating any views.
Questions:
Beta Was this translation helpful? Give feedback.
All reactions