开发者

clear browser session and cookies using c#

Hi I'v开发者_开发技巧e created a new browser object by using

InternetExplorer myie = new SHDocVw.InternetExplorer(); and I'm trying to navigate to one page some thing like

myie.Navigate("https://myfirstsite.com/login.aspx", ref Empty, ref Empty, ref Empty, ref Empty);

Now I want to clear sessons and cookies for this myie object. How can I clear it?

Any idea?


You need to use wininet.dll to do this. Look at http://pastebin.com/E4V2XGbW for some samples.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜