HttpCookie cookie = new HttpCookie("theCookie","cookieValue");
cookie.Expires = DateTime.Now.AddHours(2);Request.Cookies.Add( cookie );