读取Cookies的Domain问题
九章落地 2007-07-09 04:04:38 FormsAuthentication.SetAuthCookie(txtname.Value, false);
HttpCookie lcookie = Context.Response.Cookies[FormsAuthentication.FormsCookieName];
lcookie.Domain = ".wisdom.cn";
lcookie.Expires = DateTime.Now.AddMinutes(30);
Response.Redirect(FormsAuthentication.GetRedirectUrl(txtname.Value,false));
==============================================================
以上是写入Cookies的代码
可是,当我想读出COOKIES所在域时
Request.Cookies[FormsAuthentication.FormsCookieName].Domain.ToString();
它就说,未将对像引用到实例
直接读Request.Cookies[FormsAuthentication.FormsCookieName].Domain
是空的,快疯鸟