asp.net - safari 浏览器无法处理基于 cookie 的 asp.net session

标签 asp.net safari

任何想法为什么我的 SESSION 代码适用于 IE+Firefox+chrome 但在 safari 中失败..

page1.aspx 有代码:

   Session("sessioncreated") = Now.Ticks

page2.aspx :问题就在这里(当用户来到 page2 时:)
If Session("sessioncreated") Is Nothing Then
  ' critical error - SAFARI comes here, data is lost

else
  ' all other browsers come here OK
end if

如何进一步调试?

我的 web.config 没有什么特别的 - 我只使用 session 处理的默认值

最佳答案

您的重定向导致 safari 将 cookie 视为第三方 cookie,而 Safari 不允许在 IFrame 中使用第三方 cookie(现在每个 facebook 应用程序都在 IFrame 中)。

希望这可以帮助。

关于asp.net - safari 浏览器无法处理基于 cookie 的 asp.net session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1000462/

相关文章:

c# - Telerik 中报告参数 XXX 的值无效

html - 在 ASP.NET Core 2 中的 layout.cshtml 中使用和路由 Less 文件

asp.net - Windows Azure 我可以在同一个超小型实例或小型实例上运行多个网站吗

html - 音频标签在 Safari 或 Opera 中不起作用

css - 显示 : table-cell floated DIV height expanding to 100% only working in Chrome

asp.net - 在安全页面(或 ssl )上的 iframe 中加载不安全内容 https ://in asp.net

c# - JavaScript 不会从 asp.net 中的 C# 代码进行回发

ipad - "Safari on iPad"与 "Desktop Safari"之间的已知差异列表

safari - 以编程方式更改 Safari 浏览器扩展的图标?

javascript - .getDay() 在 IE 和 Safari 中不起作用