有关于保存内容到Cookies的问题,请大家帮我看看,下班前揭贴......................
这段代码是哪里错了,还是Cookies保存要用别的类,请大家指点我一下
FormsAuthenticationTicket Tick = new FormsAuthenticationTicket(1, "11 ",DateTime.Now.AddHours(1),DateTime.Now,true, "22 ",FormsAuthentication.FormsCookiePath);
string ls_Path=FormsAuthentication.FormsCookiePath.ToString();
string dd = FormsAuthentication.Encrypt(Tick);
HttpCookie c = new HttpCookie(System.Web.Security.FormsAuthentication.FormsCookieName,dd);
Response.AppendCookie(c);
------解决方案--------------------cookie 大小和编码是有限制的