开发者

How to delete firefox cookies in C#?

开发者 https://www.devze.com 2023-04-07 10:35 出处:网络
I delete firefox cookies by this code: if(Environment.SpecialFolder.ApplicationData + @\"\\Mozilla\\Firefox\\Profil开发者_如何学Pythones\\cookies.sqlite\")

I delete firefox cookies by this code:

if(Environment.SpecialFolder.ApplicationData + @"\Mozilla\Firefox\Profil开发者_如何学Pythones\cookies.sqlite")
{
File.Delete(Environment.SpecialFolder.ApplicationData + @"\Mozilla\Firefox\Profiles\cookies.sqlite");
}

but when I run firefox, deleted file restored again.

Can one help me?


Why you dont use "DELETE" sql command insted of deleting sql file? You can use sqlite file in your C# application.

http://www.codeproject.com/KB/cs/SQLiteCSharp.aspx

http://www.dreamincode.net/forums/topic/157830-using-sqlite-with-c%23/

0

精彩评论

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

关注公众号