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 to make ChromiumWebBrowser have standalone cookies #1836

Closed
duoduoxi opened this issue Oct 18, 2016 · 3 comments
Closed

how to make ChromiumWebBrowser have standalone cookies #1836

duoduoxi opened this issue Oct 18, 2016 · 3 comments

Comments

@duoduoxi
Copy link

Hi,all
I used same ChromiumWebBrowser in my program, now all ChromiumWebBrowser shared the same cookies, Is there any way to make ChromiumWebBrowser have standalone cookies ?

Thanks.

@amaitland
Copy link
Member

So you have a question to ask, where can you look for answers?

Please take the time to read the issue template, if you have a question, ask it on Gitter first.
https://github.com/cefsharp/CefSharp/blob/master/ISSUE_TEMPLATE.md

@amaitland
Copy link
Member

@duoduoxi Please read the issue template next time.

Isolation is achieved using a RequestContext. If you specify a unique cache for each unique RequestContext you should have cookie isolation. You can share a RequestContext between multiple instances.

browser.RequestContext = new RequestContext(new RequestContextSettings { CachePath = "cache1" });

//browser.RequestContext = new RequestContext(new RequestContextHandler());

@duoduoxi
Copy link
Author

@amaitland
Sorry , I am not familiar with github. I will ask question on gitter next time.
Thank you very much.

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

2 participants