通过代码删除 Flash Cookie
我正在使用 C#(或 VB,如果需要)设置一个简单的自动化浏览器程序。现在我正在通过 watin 这样做。我在 Windows 7 桌面上执行此操作,并且通过 Watin 自动化的浏览器是 IE。理想情况下,我想保持原样,在 C# 中使用 watin,但我很灵活。
每次运行该程序时,我都想删除 cookie,使用 watin 执行起来很简单。我遇到的问题是删除 flash cookie。
我知道要手动删除 cookie,您可以在此处执行此操作,但我想找出一种通过编程来实现的方法 FLASH COOKIES 设置
此外,这里还有一个 关于 Flash Cookie 和隐私的精彩论文
如果我遗漏了任何内容,请告诉我,或者我可以做些什么来使这个问题尽可能清楚。
Using C# (or VB if needed), I am setting up a simple automated browser program. Right now I am doing this via watin. I am doing this on my Windows 7 Desktop and the browser I am automating via Watin is IE. Ideally I would like to keep it as is, in C# using watin, but I am flexible.
Each time I run the program I would like to delete the cookies, which with watin is simple to execute. The problem I have is deleting the flash cookies.
I know to manually delete the cookies you can do it here, but I'd like to figure out a way to do it via programming FLASH COOKIES SETTINGS
Also, here is a Great paper on Flash Cookies and Privacy
Please let me know if I left anything out, or what I can do to make this question as clear as possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看此博客文章,了解执行此操作的简单批处理文件: http://www.ardamis.com/2010/07/07/how-to-delete-flash-cookies/。这可以轻松地转换为 C# 或(您可以将其转为批处理文件)并从测试套件 init 中执行。
Take a look at this blog post for a simple batch file that does this: http://www.ardamis.com/2010/07/07/how-to-delete-flash-cookies/ . This can easily be converted to C# or (you can shell out to the batch file) and executed from your test suite init.
使用 SOLReader 删除相关的LSO 数据。
Use SOLReader to delete the relevant LSO data.