Solved

Access and Delete Cookies obtained from Microsoft Web Browser Control

Posted on 2004-08-31
5
192 Views
Last Modified: 2008-01-09
Does anybody know how to access and delete the cookies recieved when using the Microsoft Web Browser Control?
0
Comment
Question by:kayhustle
  • 4
5 Comments
 
LVL 18

Expert Comment

by:armoghan
Comment Utility
0
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
Comment Utility
0
 
LVL 18

Expert Comment

by:armoghan
Comment Utility
You can check before deleting that if it is a cookie

something like

If InStr(CacheFile, "Cookie") = 0 Then

         Call DeleteUrlCacheEntry(CacheFile);
end if
0
 
LVL 1

Author Comment

by:kayhustle
Comment Utility
Wow, I see you really did your homework on this one, I will definitely leave full points for both answers.  i just need to know one more thing.  The call to DeleteUrlCacheEntry takes in a System.IntPtr, not a string.  Do you know how I can tell if that pointer points to a string with "Cookie" in it?
Thanks
0
 
LVL 18

Expert Comment

by:armoghan
Comment Utility
Check this

http://groups.google.com.pk/groups?q=COOKIE_CACHE_ENTRY&hl=en&lr=&ie=UTF-8&selm=3412fee7.0302040713.2709a57d%40posting.google.com&rnum=1

Public Const COOKIE_CACHE_ENTRY As Long = &H100000

if(internetCacheEntry.CacheEntryType & COOKIE_CACHE_ENTRY)
{
     Console.Out.WriteLine("its a cache entry");
}

also posted in other question
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now