Alright so I want to force a new session but I'm not even sure how to use the code I was given to do just that. I have 2 web browser controls in one app that need 2 different sessions. Can this code do what I need it to? If so, how do I implement it?
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;
}
Thanks in advance