Fork or copy a users browser session in IE
Posted
by jmoeller
on Stack Overflow
See other posts from Stack Overflow
or by jmoeller
Published on 2008-11-05T09:00:05Z
Indexed on
2010/05/09
10:08 UTC
Read the original article
Hit count: 423
Is it possible to fork a users session (or do something similar) in a Internet Explorer plugin?
I want to process the page the user is on when they click a button in the toolbar. To avoid interrupting the users browsing, I'd like to "copy" everything so I can parse and process the page in the background. The processing can involve things such as loading the content of the result links on a Google search, if that's where the button was clicked.
So - what I basically want is to imitate "Ctrl+N
" but hide the window from the user, so they won't be interrupted.
As you can see, if you fill out and submit the form on http://www.snee.com/xml/crud/posttest.html and press "Ctrl+N
", everything posted will still appear in the new window, but it won't post the data twice.
I was thinking of somehow copying the IWebBrowser2
, but:
- I'm not sure if that's possible (I haven't been able to find any information on MSDN)
- I don't know if it copies the sessions as well.
Creating a new instance of the IWebBrowser2
and simply navigating to the current URL isn't a valid solution as POST
-variables of course doesn't get carried over.
© Stack Overflow or respective owner