1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to delete IE WebBrowser cookies on VS 2010?

Discussion in 'Visual Basic .NET' started by sandrine10, Jun 10, 2014.

  1. sandrine10

    sandrine10 Power Member

    Joined:
    Apr 14, 2010
    Messages:
    621
    Likes Received:
    63
    Location:
    CyberLand
    Hi Guys,

    I searched google on how to delete cookies & cache using VS 2010 IE webbrowser,the response i found didn't work, i use this:
    'Temporary Internet Files
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 8")

    'Cookies()
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 2")

    'History()
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 1")

    'Form(Data)
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 16")

    'Passwords()
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 32")

    'Delete(All)
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 255")

    'Delete All ? Also delete files and settings stored by add-ons
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 4351")


    But not working :(
    Any help?!!
     
  2. zohar

    zohar Newbie

    Joined:
    Jun 24, 2014
    Messages:
    44
    Likes Received:
    5
    PM me for code, the BHW forum would not allow me to post the code snippet...