I have developed a internet explorer toolbar in VC++,In which user needs to log-in then i just update that user details in a menu but whenever i change the tab ,the toolbar gets log-out.
How can i stop running separate instance of toolbar for each tab.
I have developed a internet explorer toolbar in VC++,In which user needs to log-in
Share
Toolbars are in-process COM servers and IE itself uses process isolation for tabs. To make your state data survive a tab close/crash you need to move it out of IE’s processes and into a broker process. You can get the state data by asking the broker process via one of interprocess communication methods (e.g. named pipe).
To sync the state between tabs, save the data to the broker process in old tab’s DWebBrowserEvents2 ::WindowStateChanged event handler and ask the broker process for the state data in the new tab’s DWebBrowserEvents2 ::WindowStateChanged event handler.