Saving Cookies from RestResponse or Passing Session IDs - URGENT HELP REQUIRED
===

If anyone could help me out with my issue, i would be really thankful.

I have written a c# code using RestSharp library to interact with RightScale API.

The code works fine with one set of username and password, but when i replace the username and password with a new one, i get the response "Basic auth is deprecated for calls other than login. Please 'login' to get a session and pass the session back for further actions."

Can anyone guide me in the right direction. I find it really weird that the code works for one set of credentials only and not with any other username and password.

How do i save cookies and pass them as reference in the next restrequest?

Thank you.
Devesh 