Exemplo n.º 1
0
        private void btnResetWbTwo_Click(object sender, EventArgs e)
        {
            if (cbProxyServers.SelectedItem != null)
            {
                Internet.ClearIECache();

                if (wbTabTwo.Document != null)
                {
                    wbTabTwo.Document.Cookie = null;
                    wbTabTwo.Navigate("javascript:void((function(){var a,b,c,e,f;f=0;a=document.cookie.split('; ');for(e=0;e<a.length&&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());}}}})())");
                }

                tbAbsoluteUriTabTwo.Text = _initialAbsoluteUriTwo;

                tbAbsoluteUriTabTwo_KeyUp(this, new KeyEventArgs(Keys.Enter));

                tbCookieValueTabTwo.Text = null;
            }
        }
Exemplo n.º 2
0
 private void btnClearIE_Click(object sender, EventArgs e)
 {
     Internet.ClearIECache();
 }