//Create a Cookie:HttpCookie myCookie = new HttpCookie(“UserId” , “xyz”); //Add Cookie to Response using Add method, shown below.Response.Cookies.Add(myCookie);