Using cookies from HttpWebRequest in WebBrowser
Posted on 2011-02-25
I am writing an app that logs in to a website using HttpWebRequest and stores the cookies in a CookieContainer. Most of the time I will not need to switch to the WebBrowser control, but when I do, I would like to be able to use the same cookies that I have already gotten so I don't have to login to the site all over again.
Can someone explain/ give an example on how to transfer the cookies from the CookieContainer to the WebBrowser.