Reputation: 1147
How do I add custom cookies to Windows Phone WebBrowser control?
Upvotes: 1
Views: 1326
Reputation: 122
There is no set cookie function with the WebBrowser control. It does not make sense to have one because you can only set cookies for sites you own. So the cookie should be set on the page you are loading (navigating to) inside the browser. This can easily be done with JavaScript. There are other methods using CookieContainer and accessing the request object through the scripting functions of the WebBrowser control, but the JavaScript options is the simplest.
Upvotes: 1