Solved

Access and Delete Cookies obtained from Microsoft Web Browser Control

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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