示例代码:
Response.Cookies["myCookie"].Domain = "example.com"; Response.Cookies["myCookie"].Path = "/";
示例代码:
Response.Cookies["myCookie"].Expires = DateTime.Now.AddDays(30);
示例代码:
Response.Cookies["myCookie"].Secure = true;
示例代码:
Response.Cookies["myCookie"].HttpOnly = true;
请注意,这些示例代码仅供参考,并且可能需要根据您的具体设置和需求进行调整。