Hello,
i made some WebRequest's and got Responses to a site and succesfully posted data for 3 pages. Now the last page is a confirmation page and i need to make the user click the confirm button. But when i write response content to the browser like this
response = request.GetResponse() as HttpWebResponse;
dataStream = response.GetResponseStream();
reader = new StreamReader(dataStream);
responseFromServer = reader.ReadToEnd();
responseFromServer = responseFromServer.Replace(@"=""/", @"=""http://website.com/");
Page.Response.Write(responseFromServer);
web page redirects to logoff page after user clicked the button, because browser doesn't have the cookies and session variables. What i did above was just writing html to a page. I thought, maybe HttpContext.Current
or WebClient
classes can be useful but could not figure it out.
How can i make the browser to continue this session? how can i pass session variables and cache from response to browser?
Any help will be appreciated..
Sinan