Can someone help me with some code to clear iExplore cookies? Its alot more difficult then it seems.
Printable View
Can someone help me with some code to clear iExplore cookies? Its alot more difficult then it seems.
anyone?
An easy way would be to use Environment.SpecialFolder enumeration to get the Cookies folder and then Delete all the files inside the folder
Don't forget to include System.IO namespace.Code:public void deleteCookies()
{
DirectoryInfo di = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.Cookies));
foreach (FileInfo fl in di.GetFiles())
fl.Delete();
}