Alright I was given a link (http://support.microsoft.com/kb/195192) along with InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0); and told it should force 2 browsers in the same application to use 2 different cookies.
I ran it through the code translator and got the following.
const int INTERNET_OPTION_END_BROWSER_SESSION = 42;
[DllImport("wininet.dll", EntryPoint="InternetSetOptionA")]
private static extern int InternetSetOption(long hInternet, long lOption, ref Any sBuffer, long lBufferLength);
public int flushCredentials() {
int h;
h = InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0);
return h;
}
Most of the time I will sit for hours or days screwing with the code until I have it figured out but as this is for a generalized usage, I have no clue how to "assign" the call to a specific web browser. The application uses 2 web browser controls.
Can anyone help or at least point me in the right direction?
Thanks.
[Edit]
Also, is "h" in flushCredentials() returned as a success/fail int result?