Discussion:
Enumerating all session cookies
(too old to reply)
crj
2005-04-06 15:10:52 UTC
Permalink
Hi

How do I find all -session- cookies for the current process?

I have tried using FindFirstUrlCacheEntry/FindNextUrlCacheEntry
but this only returns non-session cookies -
at least, I cannot see it returning any in the
tests I have run.

If I know a particular URL then using InternetGetCookie()
I can locate the cookies (session and non), but if I don't know the
URL how then do I find the session cookies?

Seems that I must be missing something pretty obvious here, but cannot see
what at the moment.

- chris
Stephen Sulzer
2005-04-09 02:23:13 UTC
Permalink
There is no WinInet API to enumerate all the session cookies in the process.
You can only access session cookies using InternetGetCookie[Ex], but this
narrows the search to a specific domain.

- Stephen
Post by crj
Hi
How do I find all -session- cookies for the current process?
I have tried using FindFirstUrlCacheEntry/FindNextUrlCacheEntry
but this only returns non-session cookies -
at least, I cannot see it returning any in the
tests I have run.
If I know a particular URL then using InternetGetCookie()
I can locate the cookies (session and non), but if I don't know the
URL how then do I find the session cookies?
Seems that I must be missing something pretty obvious here, but cannot see
what at the moment.
- chris
crj
2005-05-12 15:39:33 UTC
Permalink
Thanks - sort of what I suspected, unfortunately.

- chris

Continue reading on narkive:
Loading...