I'm creating an application to do a few different things on a website in the logged in section.
To do this, I must maintain a single continuous Cookie session for all requests I make.
So far I have successfully connected to the website via HttpWebRequest and the response has confirmed this, however I have been unable to reuse the cookie.
I have read all over SO and found topics that indicate how to use a cookie within the same function or class but I require the ability to use the cookie in multiple different functions.
My first thought was to try returning the cookie container from the initial login function and then pass it as a parameter to each subsequent function but I just couldn't get it going.
Is anyone able to suggest either a better method or a way I can accomplish this?