开发者

How to delete firefox cookies in C#?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜