Groups | Blog | Home
all groups > dotnet sdk > july 2005 >

dotnet sdk : why i can't post the cookie to site with HttpWebRequest class?


SHARETOP
7/14/2005 1:40:04 AM
Dear everyone.

I use the HttpWebRequest/HttpWebResponse classes to maintain session state
between two host.
first,I login a page( A Site),cookie is correct.and then refer to the
second page , run ok.I get the second page content...then I refer to the
page(3),it's result is 302,then redirect another page(4) (on B Site), I get
the correct page content,and get the cookie from CookieContainer object, it
is all right....

but if I refer to page(5) (B site), the cookie is losted. It CAN'T be post
to page(5), why?

thank you .
Joerg Jooss
7/16/2005 5:50:20 AM
[quoted text, click to view]

Seems you're doing something wrong with the CookieContainer. Can you
post your code?

Cheers,
--
http://www.joergjooss.de
AddThis Social Bookmark Button