HttpWebRequest with CookieContainer - not deleting cookie - what is wrong here?

M

macro

when I use HttpWebRequest with CookieContainer object that handles cookies,
i make more than one request and needs to handle cookies being added and
removed between requests, just like a regular web browser like internet
explorer.

if I have this cookie header in a response:

Set-Cookie: <CookieName>=; path=/;expires=01-Jan-1999 00:00:00 GMT

the cookie is not deleted for the next request, and is being sent again with
the old value, while should be deleted - and actually is deleted with
Internet Explorer as client.

is this a bug is there a solution / workaround by manually deleting the
cookie?

please help!

TIA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top