Hi Strange_Will,
An answer is coming quite late... but it may help others. So here a way to add a cookie to the webBrowser control: (works great!)
public partial class WebBrowserControl : Form
{
private String url;
[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern bool InternetSetCookie(string lpszUrlName, string lbszCookieName, string lpszCookieData);
public WebBrowserControl(String path)
{
this.url = path;
InitializeComponent();
// set cookie
InternetSetCookie(url, "JSESSIONID", Globals.ThisDocument.sessionID);
// navigate
webBrowser.Navigate(url);
}
...
}
For more info, see this blog entry:
http://en.gli.sh/Blog/default,month,2006-11.aspx