ios中mvc的FormsAuthentication.SetAuthCookie(cookieUserName, false)失败

如果楼主使用.net开发,要注意FormsAuthentication.SetAuthCookie 方法的使用会导致ios出现该问题。
因为这个方法在ios设备上是把票据加入到url中,导致url和你的授权目录不匹配。

解决办法:
Web配置文件中的forms节点的cookieless属性设置为“UseCookies”
例如:
<authentication mode="Forms">
      <forms loginUrl="~/Account/Login" timeout="2880" name=".aspnet" cookieless="UseCookies" />
    </authentication>

原文地址:https://www.cnblogs.com/xy99/p/5786659.html