In my mvc3 facebook application i detect user if login status = connected or let him to login
by Facebook login popup.After login i save user Facebook id in session:
HttpContext.Current.Session["CurrentUserFacebookId"] = FacebookId;
The problem is in safari browser. The default settings of safari is to “block cookies from third parties and advertisers”. So session is not saved and user can’t use my application, because all actions check the session.How to solve this problem?Thanks
You can try to do this by setting the header with a simple P3P Policy
Or in PHP:
Or in ASP.NET:
But I think after Safari 5.5.1 or so this trick doesn’t work anymore. I think the only way in Safari 5.5.1 or later is to enable 3rd party cookies/sessions by setting “Block cookies” in Preferences -> Privacy to “Never”.