摘要: publicstaticvoidSetCookie(Stringkey,Stringvalue,TimeSpan?expires){StringBuildercookie=newStringBuilder();cookie.Append(String.Concat(key,"=",value));if(expires.HasValue){DateTimeexpire=DateTime.UtcNow+expires.Value;cookie.Append(String.Concat(";expires=",expire.ToString("R&q 阅读全文
posted @ 2011-05-09 17:26 空紫竹 阅读(314) 评论(2) 推荐(0) 编辑