任何想法为什么我的 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/