Good afternoon forum,
I have a project that uses RestSharp. When I make a request such as a POST I get a session cookie in return which is dropped into a Cookie Container. This all easy if I only use it on 1 form. How would I go bout having the cookie container present in all forms. I currently create a new client per request and close it when I'm done. Should I just create the Cookie Container as a global in my Mainform and pass it to the client everytime its created or is there a better use.
I have a project that uses RestSharp. When I make a request such as a POST I get a session cookie in return which is dropped into a Cookie Container. This all easy if I only use it on 1 form. How would I go bout having the cookie container present in all forms. I currently create a new client per request and close it when I'm done. Should I just create the Cookie Container as a global in my Mainform and pass it to the client everytime its created or is there a better use.