Initially none, then I added these two
CookieContainer myContainer = new CookieContainer {
PerDomainCapacity = 5,
Capacity =5
};
But that does noct change anything Program.Notify ("cookiecounter", Convert.ToString(response.Cookies.Count)); still says 1 (also if I pick a different webpage for the webrequest.
If I manually add a cookie, CooKies.Count increases to two.
myContainer.Add(new Cookie("admin","1","/","IPADDRESS"));
So I think the problem is getting the cookies out of the first response, this code only shows me only the last cookie, too.
string cookiesresult = "";
foreach (Cookie cook in response.Cookies)
{
cookiesresult = cook.Value;
Program.Notify ("cockie", cookiesresult);
}