Sud*_*dha 36 c# cookies httpcookie
默认情况下,使用C#代码添加cookie的过期时间是多少?
HttpCookie myCookie= new HttpCookie("myCookie");
myCookie.Value = txtCookie.Text;
// Add the cookie.
Response.Cookies.Add(myCookie);
Run Code Online (Sandbox Code Playgroud)