Solved

Access and Delete Cookies obtained from Microsoft Web Browser Control

Posted on 2004-08-31
5
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 18

Expert Comment

by:armoghan
ID: 11949225
0
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 11949234
0
 
LVL 18

Expert Comment

by:armoghan
ID: 11949261
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
ID: 11949383
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
ID: 11949857
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

626 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