Last post Dec 24, 2019 01:56 AM by Yang Shen
Dec 23, 2019 12:29 PM|soumenh|LINK
I am calling cross domain from an iFrame, passing username and password from iFrame to cross domain. in cross domain aspx page i got username and password and can set/get session value. Now when I am calling a .ASHX handler from the aspx page, Session values
are not being retrieved from handler. it giving null reference error. I have used IRequiresSessionState.
--The scenario is happening in iOS safari browser only, rest are working fine.
How to resolve?
Dec 24, 2019 01:56 AM|Yang Shen|LINK
The scenario is happening in iOS safari browser only, rest are working fine.
This seems to be a problem specific to Safari browser. You can see a similar situation at Why does ASP.NET change session
when Safari requests file through ASHX handler? and safari browser fails to handle cookie based asp.net sessions.
The Safari browser consider the SessionId cookie as a 3rd party cookie somehow and recreated the SessionId. As you can see in the first link, there's a workaround to use cookie for Safari instead of session.
Please open this thread at
Safari - Apple Community and there should be more chance to solve the issue.