Link to home
Start Free TrialLog in
Avatar of kayhustle
kayhustle

asked on

Access and Delete Cookies obtained from Microsoft Web Browser Control

Does anybody know how to access and delete the cookies recieved when using the Microsoft Web Browser Control?
Avatar of armoghan
armoghan
Flag of Pakistan image

ASKER CERTIFIED SOLUTION
Avatar of armoghan
armoghan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can check before deleting that if it is a cookie

something like

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

         Call DeleteUrlCacheEntry(CacheFile);
end if
Avatar of kayhustle
kayhustle

ASKER

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
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