I am sending a HTTPWebRequest from C# code and in response I am getting a cookie containing session ID. I am not able to locate the cookie in the public/non public members of response. However fiddler is capturing the cookie and its path is “/”. Can anyone please tell me where should I look for this cookie? I have checked the folder “C:\Users\UserName\AppData\Roaming\Microsoft\Windows\Cookies” and its not there.
Share
Cookies may be physically stored in different locations, depending on the browser.
I think you’re better off getting the
HttpWebRequestworking with cookies.See the answer to this question regarding adding a
CookieContainerto the request object.