I have a situation where a customer logs in my website with credentials. With that credentials I did get the sessionid for another internal website. I am trying to open a website using the sessionid, so that customer don’t have to login again to that internal website.
I do have the sessionid and I have stored in a httpcookie like below.
HttpCookie mycookie = new HttpCookie("xyz");
mycookie.Value = sessionId;
mycookie.Expires = DateTime.Now.AddHours(9);
How to open website using the sessionid?
Just add the cookie to the response: