I have a Visual Foxpro Windows app that runs the below code. This code is
used to call IE and pass a URL and login info in order to automatically log a
user into our
web site.
The below works fine.
But a problem occurs when a user leaves an IE window open to the last
customer and runs the below code again. What happens is that a new IE window
is opened and the webform sets cookie values to the new customer ID. But now
both IE browsers have the same cookie values.
In other words, the below code will open a new IE window but any cookies
that are created are shared across all opened IE windows.
Also, if I open process explorer, there will only be 1 IExplore.exe shown in
the list even though the below code was run multiple times and each IE window
is still open.
Is there anyway to make a new IExplore.exe open whenever the below code is
run? Or is there another way to do this?
Thanks,
Jerry Tovar
***My Windows app code.
tc_url = [
http://localhost/mate/login.aspx?uid=MyID&custID=] + [SomeCustID]
Local loIE2 as internetexplorer.application
loIE2 = createobject('internetexplorer.application')
loIE2.Navigate(tc_url)
loIE2.Visible = .t.