110,536
社区成员
发帖
与我相关
我的任务
分享
//清空当前浏览站点的cookie
//提示是否清空
if (!AllForms.AskForConfirmation("Proceed to remove cookies from "
+ m_CurWB.LocationUrl + " ?", this))
return;
this.Cursor = Cursors.WaitCursor;
//调用ClearAllCookies方法,这里的frmCacheCookie是frmCacheCookie窗体类
iCount = m_frmCacheCookie.ClearAllCookies(m_CurWB.LocationUrl);
bshowform = false;
this.Cursor = Cursors.Default;
MessageBox.Show(this, "Deleted " + iCount.ToString() +
" Cooikes from\r\n" + m_CurWB.LocationUrl,
"Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
//frmCacheCookie窗体类:
这个类调用了API来实现清楚指定的Cookie,你看看代码就知道了!