Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to login with different accounts at the same time with .net webbrowser control in C#

I would like to create an application, that contains two or more webbrowser controls. I would like to login to a website, that uses cookies, but when I logged in with one of the browsers, it replaces the others cookies/settings of course. Is this a solution to use parallel accounts to the same site? Using different proxies on each webbrowser would be awesome.

UPDATE :

Other webbrowsers (based on firefox or anything else) or wrappers would be also nice.

like image 561
Pmillan Avatar asked Dec 27 '22 07:12

Pmillan


2 Answers

What you describe is usually not wanted/supported because of Session Merging.

There is a .NET browser-framework (based on Chrome/WebKit) which supports what you want... for details see http://awesomium.com/

like image 173
Yahia Avatar answered Jan 13 '23 15:01

Yahia


It is IE behavior so you will have your sessions merged, you can try logging in twice from plain IE to see the effect and explore the possibilities.

It might still be possible, you would have to run each WebControl as a different (local-machine) User somehow. The session is linked to a cookie and cookies are stored per User.

like image 35
Henk Holterman Avatar answered Jan 13 '23 15:01

Henk Holterman