开发者

clear browser session and cookies using c#

开发者 https://www.devze.com 2023-02-07 00:53 出处:网络
Hi I\'v开发者_开发技巧e created a new browser object by using InternetExplorer myie = new SHDocVw.InternetExplorer();

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

精彩评论

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