Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How do you delete Internet Explorer Cookies Progamatically?

How do you delete Internet Explorer Cookies Progamatically?

Scheduled Pinned Locked Moved Web Development
htmltoolstutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kayhustle
    wrote on last edited by
    #1

    I need to delete user cookies in my application the same way that clicking on Tools/Internet Options.../Delete Cookies... does in Microsoft Internet Explorer. I've found that if I delete the cookies stored in Documents and Settings\MyUserName\Cookies, Internet Explorer still uses the cookies stored in \Documents and Settings\MyUserName\Local Settings\Temporary Internet Files. If I delete these cookies manually through explorer, they are permanently deleted. If I enumerate through all the files and directories in \Documents and Settings\MyUserName\Local Settings\Temporary Internet Files,using a DirectoryInfo object I am given various html and image files, but no cookie files? Anybody know how to access and delete these cookies programatically?

    S 1 Reply Last reply
    0
    • K kayhustle

      I need to delete user cookies in my application the same way that clicking on Tools/Internet Options.../Delete Cookies... does in Microsoft Internet Explorer. I've found that if I delete the cookies stored in Documents and Settings\MyUserName\Cookies, Internet Explorer still uses the cookies stored in \Documents and Settings\MyUserName\Local Settings\Temporary Internet Files. If I delete these cookies manually through explorer, they are permanently deleted. If I enumerate through all the files and directories in \Documents and Settings\MyUserName\Local Settings\Temporary Internet Files,using a DirectoryInfo object I am given various html and image files, but no cookie files? Anybody know how to access and delete these cookies programatically?

      S Offline
      S Offline
      Syed Abdul Khader
      wrote on last edited by
      #2

      Create a cookie with the name same as the name of the cookie you want to delete and make its expiry date as a past date.

      K 1 Reply Last reply
      0
      • S Syed Abdul Khader

        Create a cookie with the name same as the name of the cookie you want to delete and make its expiry date as a past date.

        K Offline
        K Offline
        kayhustle
        wrote on last edited by
        #3

        Really? I'll have to try that and I'll let you know how it goes. Thank you

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups