How can I keep the session?

  • Thread starter Thread starter YangGang
  • Start date Start date
Y

YangGang

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!
 
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.
 
Back
Top