CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Posts
    35

    Delete only the cookies create by webbrowser

    Suppose I have webbrowser in mine form..Is it possoble to capture only the cookies create by mine webbrower..suppose before starting the project,in mine cookies folder there are cookies names cookie1 & cookie2....Suppose after the project run.cookies created by mine project are named cookie3 & cookie4...I want to delete cookie3 & cookie4 only..Is there any way to do it???? Ur reply is hightly appreciated.

  2. #2
    Join Date
    Jun 2004
    Location
    NH
    Posts
    678

    Re: Delete only the cookies create by webbrowser

    I don't know if there is a built in way, to do this.
    But you could check the file dates, and delete them selectively.
    If they were "last accessed"during the time period when your webbrowser was open.

  3. #3
    Join Date
    Jun 2009
    Posts
    35

    Re: Delete only the cookies create by webbrowser

    hello sir,Suppose mine project is running & i get the started time,suppose at the same time when mine project is running,user accesses sites in IE.....then both the cookies are created,some are created by ,mine project & some are created by IE..then date logic fails na,because it deletes both the IE & web browser cookies..But I want to delete only cookies that are created by web browser,not IE cookies....

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Delete only the cookies create by webbrowser

    Sounds like you need to turn on Private Browsing. That prevents saving of all cookies.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Jun 2009
    Posts
    35

    Re: Delete only the cookies create by webbrowser

    U didnt get my question,I have to delete the cookies

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Delete only the cookies create by webbrowser

    Private Browsing = No Saved Cookies
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this 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

Featured