Solved

Access and Delete Cookies obtained from Microsoft Web Browser Control

Posted on 2004-08-31
5
196 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 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

16 Experts available now in Live!

Get 1:1 Help Now