PhoneGap中文网

标题: cordova ios 后台cookie无法传值 [打印本页]

作者: zhaoleisam    时间: 2018-7-20 16:28
标题: 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,同样服务器端无法获取

捕获.PNG (53.31 KB, 下载次数: 630)

捕获.PNG





欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2