views:

177

answers:

2

I'm trying to login to my website with two different accounts (admin/regular user) to test out some permissions masks - in short its a simple admin tool. Is there any way to run 2 instances of the WebBrowser control with separate cookie containers on two separate windows without having to execute your program twice?

Edit: I'm using C#.

A: 

Don't think it is possible short of patching WinInet API calls. The WinInet implementation of session is one per each process pre-IE8, and shared across processes in IE8 when LCIE is not disabled.

Sheng Jiang 蒋晟
A: 

You can use use iMacros for this purpose: http://wiki.imacros.net/iimInit%28%29#Separate_Browser_Instances

mike in osaka

related questions