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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can check before deleting that if it is a cookie
something like
If InStr(CacheFile, "Cookie") = 0 Then
Call DeleteUrlCacheEntry(CacheF ile);
end if
something like
If InStr(CacheFile, "Cookie") = 0 Then
Call DeleteUrlCacheEntry(CacheF
end if
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
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.Cach eEntryType & COOKIE_CACHE_ENTRY)
{
Console.Out.WriteLine("its a cache entry");
}
also posted in other question
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.Cach
{
Console.Out.WriteLine("its
}
also posted in other question
http://support.microsoft.com/?id=311289