I have a jquery widget that get data from a server in another domain (using JsonNp). The server return data from session. My issue happens in Safari (other browsers works). When I do a request to the server it returns data for new session each time. This happens because Session Id is stored in a cookie (but safari doesn't allow to save 3rd party crossdomain cookies by default).
I tried changing session State from Cookieless to AutoDetected, but the Session doesn't work with Safari.
Also I tried the following hack, but it doesn't work for me for some reasons:
$(function(){
$('body').append('<iframe id="cookiesHackFrame" name="cookiesHackFrame" src="http://mysite.com/" style="display:none;"></iframe>');
$('body').append('<form id="cookiesHackForm" action="http://mysite.com/" method="post" target="cookiesHackFrame" >');
$('#cookiesHackForm').submit();
});