I am using WebBrowser Control in the WinForms application (C#). I want to write program which can put Login and Password for some user and test some functionality. It's working fine when I am running one Application instance, but I have problem when I am trying to run two app copies with different users - both instances are working with the same user and it's impossible to log in with different users. For example, I want to log-in to the same web site as User1 in one application and as User2 in the other app instance and perform tests.
How it's possible to implement program to allow two different app instances with WebBrowser Control to work with different users? As I understand, I have to isolate cookies somehow so different application instances will use their own sessions.