Groups | Blog | Home
all groups > visual studio .net general > september 2007 >

visual studio .net general : Web Browser in VB.NET - VS2005


Chris Wagner
9/26/2007 10:30:05 AM
I am using a web browser control in a VB.NET app that is scraping data from
many (about 100) web sites. It seems that one of these is leaving a cookie
behind that is causing the subsequent site to think it's already loogged in.
If I stop and restart the application, I am able to get past this. This
leads me to belive that I am not disposing the WebBrowser control properly.
Is there a problem with disposing the control? How can I get this control
and the from it's on completely out of memory so it looks like a totaly new
instance the next time I load a form with the webborwser control on it?

Thanks
Chris Wagner
Systems Analyst
alex
9/30/2007 10:13:07 AM
On Sep 26, 1:30 pm, Chris Wagner
[quoted text, click to view]

It is possible that the site sets persistent cookies. You may need to
log out from the Web application to clean the cookies (if the site
provides this opportunity).

If this is a problem of WebBrowser control you may try
SWExplorerAutomation (SWEA) from http://webiussoft.com. SWEA
automates IE.
You can try to automate IE instrad
AddThis Social Bookmark Button