Tech Support > Microsoft Windows > Development Resources > IWebbrowser2 Sessions persist across multiple invocations
IWebbrowser2 Sessions persist across multiple invocations
Posted by tsantosh.kumar@iflexsolutions.com on January 7th, 2005


Hi ,
I have a MFC executable that users the IE through
automation-IwebBrowser2 interface .
The Whole thing works fine except that once i close my application
and go back to the same site the session from the first login is used.

I have to invalidate the session on the server although i have closed
my browser instance.

Any reason why this is so and how to overcome this?
Many Thanks
Santosh

Posted by Alex Blekhman on January 11th, 2005


tsantosh.kumar@iflexsolutions.com wrote:
Do you see this problem if running IE? One thing that I can imagine is
that WebBrowser control server is created not in process, but rather
in standalone IE process. Between your invocations IE process doesn't
exit and probaly caches WebBrowser control for some time. So, next
time you're asking WebBrowser control you're getting previous instance
of WebBrowser control.




Similar Posts