Consider a web response with this header:
Set-Cookie: sample=testCookie; Domain=.sample.com; Expires=Tue, 25-Jan-2012 00:49:29 GMT; Path=/
this
I think you are looking for CookieContainer. See SetCookies method.