Re: Passing authentication information from axWebBrowser instance to another
- From: Christian Winter <cw@xxxxxxxxxx>
- Date: Thu, 21 Apr 2005 07:58:25 +0200
Christian Winter wrote:
> Igor Tandetnik wrote:
>
>>"Christian Winter" <cw@xxxxxxxxxx> wrote in message
>>news:eRx7VzZRFHA.3156@xxxxxxxxxxxxxxxxxxxx
>>
>>
>>>I've made a program (C#) that wraps the axWebBrowser component and
>>>captures BeforeNavigate2 and NewWindow3 events to control
>>>what pages are accessible. If the url is allowed, a new instance
>>>is created and I call
>>>Navigate(string, ref null, ref null, ref null, ref null) to
>>>load the target url. This works fine so far, the only
>>>thing that might annoy users is that they have to authenticate
>>>themselves with every new window.
>>>
>>>Is there a way to pass on auth information from the originating
>>>axWebBrowser instance to the new one? I've searched the msdn
>>>documentation up and down, but maybe I'm just missing the right
>>>keyword. Any hints or pointers will be apreciated.
>>
>>
>>This is how you should create your new instance: KB Article KB815714
>>"HOW TO: Use the WebBrowser Control NewWindow2 Event in Visual C# .NET".
>>The same technique should work for NewWindow3.
>
>
> First, thanks for your quick answer. Although it is not mentioned
> explicitely in this document, the RegisterAsBrowser property seems
> to be responsible whether the session context is passed on to
> the new browser instance or not. Setting it to true made the whole
> thing work like a charm :-)
Seems I was too fast with my reply. It was just an invisible browser
window hanging in the background (thanks, Adobe Reader!) that made
it work. After a fresh sign-on to windows my problem stays the
same.
-Chris
.
- References:
- Passing authentication information from axWebBrowser instance to another
- From: Christian Winter
- Re: Passing authentication information from axWebBrowser instance to another
- From: Igor Tandetnik
- Re: Passing authentication information from axWebBrowser instance to another
- From: Christian Winter
- Passing authentication information from axWebBrowser instance to another
- Prev by Date: Re: Multiple IE instances
- Next by Date: Modal dialogs and DOM..
- Previous by thread: Re: Passing authentication information from axWebBrowser instance to another
- Next by thread: IOleCommandTarget implemented, now print /preview doens't work
- Index(es):
Relevant Pages
|
|