Hi,
Session ID is usually stored in a cookie. You should extract this cookie
from the WebResponse class when you first request a page from the remote
website and then pass along that cookie with every request you made to the
remote website.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
[quoted text, click to view] "YangGang" <ygbox@21cn.com> wrote in message
news:064b01c39925$e07d65e0$a501280a@phx.gbl...
> I do a programming to access a website, Using C# 's
> webrequest object,but when I access other webpage,the
> session is ended.How can I keep the session.
> Thanks a lot!