Re: Session not passed to AxWebBrowser popup

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: ReuvenT (ReuvenT_at_discussions.microsoft.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 15:15:01 -0700

Hi Igor,
Thanks for your response. I did implement SHDocVw.DWebBrowserEvents2 (in vb.net) and had looked at the NewWindow2 event, but the ppDisp parameter is nothing. So it's not clear how 1) I get a handle to the new process; then 2) pass the session across the processes.
Any further guidence?

Also, is the new URL accessable somewhere? It doesn't seem to be in Navigate events. Having that URL, I could possibly cancel the navigation and open a new axWebBrowser form. That would give me half a work-around.

Thanks,
Reuven

"Igor Tandetnik" wrote:

> "ReuvenT" <ReuvenT@discussions.microsoft.com> wrote in message
> news:04A56CF9-B977-4D97-B720-E82E0812406E@microsoft.com
> > We're displaying some intranet aspx pages through AxWebBrowser and
> > some of these call window.open to display popup pages. It looks like
> > the popup doesn't see the browser session from the parent in the
> > AXWebBrowser control. When hosted in IE, the popups can access the
> > session.
>
> Sessions are maintained on a per-process basis. When window.open is
> executed from inside iexplore.exe, it opens a new window within the same
> process, and the session is maintained. When window.open is called
> inside your application, the new window opens in iexplore.exe, which is
> a different process, and the session is lost.
>
> If you want to keep all new windows within your application, see
> NewWindow2 event.
> --
> With best wishes,
> Igor Tandetnik
>
> "For every complex problem, there is a solution that is simple, neat,
> and wrong." H.L. Mencken
>
>
>



Relevant Pages

  • Re: restricting direct access to popup form--advice needed
    ... Because the new popup window is treated as a new session. ... >> hyperlink points to a JavaScript function which opens the popup. ...
    (comp.lang.php)
  • Re: PHP Session in new window
    ... I think you can't do things with the session because you are switching ... between https and http... ... it's possible to just use the same session in the opener window and the ... popup window. ...
    (alt.php)
  • Re: Session not passed to AxWebBrowser popup
    ... Pooran Prasad ... some of these call window.open to display popup pages. ... the popup doesn't see the browser session from the parent in the ... it opens a new window within the same ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • RE: How to create a local server (i.e., localhost)
    ... logon user session and hard to automate in a non-interactive service ... Since the webserver.exe is a winform application which has a main window, ... already running on a given port? ...
    (microsoft.public.dotnet.languages.vb)
  • RE: automatic logoff - two scenarios
    ... in order to prevent losing established remote desktop connections or e-mail ... continue the session with a pop-up Yes/No window. ... If the user does not respond after one minute, the pop-up window will ...
    (microsoft.public.windows.server.sbs)