Groups | Blog | Home
all groups > c# > october 2003 >

c# : How can I keep the session?



YangGang
10/22/2003 10:24:05 PM
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.
Dmitriy Lapshin [C# / .NET MVP]
10/23/2003 9:34:09 AM
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]
AddThis Social Bookmark Button