user1744147
user1744147

Reputation: 1147

Set cookie in Windows Phone WebBrowser control

How do I add custom cookies to Windows Phone WebBrowser control?

Upvotes: 1

Views: 1326

Answers (1)

sadify
sadify

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

Related Questions