Results 1 to 10 of 10

Thread: Quick Question: Deleting Cookies

  1. #1

    Thread Starter
    Lively Member NuLLziLLa's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    103

    Quick Question: Deleting Cookies

    Whats the command to clear a users cookies?

    I have a program, and when you click on a button it clears your cookies. (Does other things too).

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    I'm not aware of any command to delete cookies. Cookies are just files and to delete them you have to figure out where they are (and this will vary by system and browser) and then loop through them and kill them individually

  3. #3

    Thread Starter
    Lively Member NuLLziLLa's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    103
    well since theres a button in internet explorer that deltes all cookies, I would just figure there had to be some way to do this in VB.

  4. #4
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    1) IE knows where it's cookies are because it put them there. VB doesn't know where that is.

    2) You seemed to imply ALL cookies, so I assumed you meant all cookies. IE only deletes the cookies IT stored. Personally, I use both IE and NN and so have cookies from both. I think some other folks still use both as well.

  5. #5

    Thread Starter
    Lively Member NuLLziLLa's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    103
    Well I mean IE cookies of course.

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Is there anything special about the files? Like about the filenames or something so by searching the hard disk I can find them?

    Thanks


    Has someone helped you? Then you can Rate their helpful post.

  7. #7
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    I'd say they're stored in the Cookies folder in your user directory. On my system that is C:\Documents and Settings\UserName\Cookies.

    I don't know whether all cookies are stored there or just IE's...
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  8. #8
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    I'm asking because in my cookies folder all the files in it have this format : [email protected], except for one file (index.dat)

    So I was thinking that if I find the cookies folder or maybe just search the whole hard disk for files with this format and delete them...


    Has someone helped you? Then you can Rate their helpful post.

  9. #9

    Thread Starter
    Lively Member NuLLziLLa's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    103
    Isn't there code that can delete all files in a folder on the hard disk drive?

  10. #10
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Here you can get the filenames of all the files in a folder if you first find the cookies folder


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width