How wininet handles cookies

I have a .NET client application that needs to communicate with the server using two different user credentials. Suppose an application starts two threads. At startup, each thread sends a user and password for authentication, and the server responds by storing a cookie in an http session. Subsequent calls send an authentication cookie, not the user's credentials.

We have two cookies for the same process. How does wininet "know" to send the appropriate cookie for each stream?

Does wininet use a collection of cookies for each stream? per HTTP session? for the process?

thank

0
source share
1 answer

Wininet cookie .

.NET- Cookie HttpWebRequest.

cookie . HttpWebRequest .

+1

All Articles