摘要:
//写入 protectedvoidButton1_Click(objectsender,EventArgse) { HttpCookiecookie=newHttpCookie("MyCook");//初使化并设置Cookie的名称 DateTimedt=DateTime.Now; TimeSpants=newTimeSpan(0,0,1,0,0);//过期时间为1分钟 cookie.Expires=dt.Add(ts);//设置过期时间 cookie.Values.Add("userid","userid_value"); coo 阅读全文