Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i use 2 or 3 webviews in one project with different cookies? #2

Open
jianqi-jin opened this issue Mar 31, 2019 · 3 comments
Open

Comments

@jianqi-jin
Copy link

how can i use 2 or 3 webviews in one project with different cookies?

@ayqy
Copy link
Owner

ayqy commented Apr 1, 2019

We can access and modify/clear cookies, and official docs reference is here: https://electronjs.org/docs/api/cookies

Other refs:

@OlgaSukhoverkhaya
Copy link

You can use different partitions on every webview tag partition="persist:github". Cookies are accessible everywhere in the project by partition name. When using another webview, ensure that partition attribute for another session is removed.
https://www.electronjs.org/docs/api/webview-tag#partition

@jianqi-jin
Copy link
Author

You can use different partitions on every webview tag partition="persist:github". Cookies are accessible everywhere in the project by partition name. When using another webview, ensure that partition attribute for another session is removed.
https://www.electronjs.org/docs/api/webview-tag#partition

hey there, so I can just use the same url(tag src) on a couple webviews ,and set different partition to set different cookies?
yeah, I get there, thk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants