Re: Multiple Instances of AxWebBrowser

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"tamarindm" <tamarindm@xxxxxxxxxxxx> wrote in message
news:1164273637.531659.145170@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a csharp application, running multiple instances of
AxWebBrowser at the same time. Each web browser requires the same
cookie, set using InternetSetCookie. If one AxWebBrowser control is
navigating, another control is not able to recognise the cookie. If I
waited until the first control is complete navigating, then start
navigating the second control, then it is able to recognise the
cookie.

Let me see if I understand. You have two instances of WebBrowser
control. You set a cookie with InternetSetCookie. You then navigate both
controls, almost simultaneously, to some URLs whose domain matches that
of the cookie, so you expect the cookie to be sent with both requests.
But it only gets sent with one (which one?)

With all due respect, I find it hard to believe. Something else must be
affecting the picture. Could it be, for example, that by hte time the
second browser is navigated, the response for the first one has already
arrived and the server has requested to erase the cookie? When you are
doing navigations sequentially, do you by any chance make a second
InternetSetCookie call before the second navigation?
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Multiple Instances of AxWebBrowser
    ... Yes I made a second InternetSetCookie call before the second webbrowser ... cookie, set using InternetSetCookie. ... navigating, another control is not able to recognise the cookie. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Multiple Instances of AxWebBrowser
    ... running multiple instances of AxWebBrowser ... Each web browser requires the same cookie, ... If one AxWebBrowser control is navigating, ...
    (microsoft.public.dotnet.languages.csharp)
  • Multiple Instances of AxWebBrowser
    ... running multiple instances of AxWebBrowser ... Each web browser requires the same cookie, ... If one AxWebBrowser control is navigating, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Multiple Instances of AxWebBrowser
    ... running multiple instances of AxWebBrowser ... Each web browser requires the same cookie, ... If one AxWebBrowser control is navigating, ...
    (microsoft.public.dotnet.general)
  • Re: [PHP] base64-encoding in cookies?
    ... The sender is in the driver's seat and the receiver must follow suite. ... PHP application is usually what set the cookie in the first place. ... You have control over the value you insert into the cookie. ...
    (php.general)