如果应用程序或选项卡在登录后立即关闭,一些 iPhone/iPad 设备就会丢失登录 cookie。
\n\n我在研究中发现并不幸解决的问题:
\n\nSafari 可能默认禁用 cookie(Cookie 在 MAC -Safari 和 IOS Mobile- Safari 中不起作用)
\n\n有人提到 cookie 值中的逗号和分号在 Safari 上不起作用(Cookie 在 MAC -Safari 和 IOS Mobile- Safari 中不起作用)(Safari 和 Asp.net 中 cookie 的奇怪问题)
\n\nString hash = FormsAuthentication.Encrypt(ticket);\nRun Code Online (Sandbox Code Playgroud)\n\nFormsAuthenticationTicket ticket = new FormsAuthenticationTicket(\n 1,\n user.MemberNumber.ToString(),\n …Run Code Online (Sandbox Code Playgroud)