Basically there are two ways in which you can do your stuff:
1) using the HttpWebRequest class, you will have set the CookieContainer. See here for help how to do that:
2) use the webbrowser object, and then you don't have to bother about cookies.
Good luck!