title: How cookies are handled in Webbrowser Control?
body: <p>Does cookies in WebBrowser control acts as normal as in any other browser like Firefox or Chrome? I have made a simple interface for webbrowser control in VB, now im unable to manage login/logout of certain sites.</p>
  
  <p>Some time the logout works and some time dont. Do I need to add additional code for cookie handling for Web browser control or it will do everything itself.</p>
  
  <p>Where do I can read more about WebBrowser control except MSDN.</p>
  
  <p>I found this code:</p>
  
  <pre><code> webBrowser.Navigate("javascript:void((function(){var a,b,c,e,f;f=0;a=document.cookie.split('; ');for(e=0;e&lt;a.length&amp;&amp;a[e];e++){f++;for(b='.'+location.host;b;b=b.replace(/^(?:%5C.|[^%5C.]+)/,'')){for(c=location.pathname;c;c=c.replace(/.$/,'')){document.cookie=(a[e]+'; domain='+b+'; path='+c+'; expires='+new Date((new Date()).getTime()-1e11).toGMTString());}}}})())")
  </code></pre>