cordova ios 后台cookie无法传值
cordova ios 中c# 写的后端服务器
System.Web.Security.FormsAuthenticationTicket ticket = new System.Web.Security.FormsAuthenticationTicket(
1,
DESEncrypt.Encrypt(userId),
DateTime.Now,
DateTime.Now.AddYears(1),
true,
"admin",
System.Web.Security.FormsAuthentication.FormsCookiePath);
HttpCookie cookie = new HttpCookie(
System.Web.Security.FormsAuthentication.FormsCookieName,
System.Web.Security.FormsAuthentication.Encrypt(ticket));
cookie.Expires = DateTime.Now.AddDays(1);
HttpContext.Current.Response.Cookies.Add(cookie);
无法将cookie 添加到 ios客户端cookie
ios客户端的cookie,同样服务器端无法获取
页:
[1]