This blog tells about cookies in asp.net like how to create cookies, how to retrieve cookies etc... in asp.net ...
Response.Cookies("Name").Value = "Jason Bourne";
Response.Cookies("Name").Expires = DateTime.Now.AddDays(1);
string name = this.context.Request.Cookies("Name").Value;
HttpCookie cook = new HttpCookie("Name"); cook.Value = "Jason Bourne"; cook.Expires = DateTime.Now.AddDays(1); Response.Cookies.Add(cook);