I have the following console application written in VB.NET:
Sub Main() Dim ie As Object = CreateObject("InternetExplorer.Application") ie.Visible = True ie.Navigate2("http://localhost:4631/Default.aspx") End Sub
This program uses the InternetExplorer.Application automation object to launch an IE window and navigate to a given URL. The problem I am facing is that even if I run multiple instances of my application, IE windows created using this method all use the same cookie container. Is there any parameter that I could use, indicating that a different cookie container is created for each window?
This is the webpage I used to check cookies:
<%@ Page Language="C#" AutoEventWireup="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { </script> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <form id="form1" runat="server"></form> </body> </html>
source share