Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to set third-party cookies with iframe

Can someone help to set third-party cookies with iframe into safari. other browsers are working with the p3p solution.

thanks.

Paul

OS X Mountain Lion

Posted on Jul 30, 2012 3:16 AM

Reply
Question marked as Best reply

Posted on Jul 31, 2012 1:39 AM

It seems that Safari 6 no longer allows any type of cookie to be set inside an iframe unless the user previously visited that site. In Safari 5 you could still set a cookie if the user had interacted with the frame, which seems much more sensible if you ask me.


A workaround is to ask the user to click a link that escapes from the frame, sets the cookie, and then closes that window to return back into the frame. It's explained here.

2 replies
Question marked as Best reply

Jul 31, 2012 1:39 AM in response to pauldenuijl

It seems that Safari 6 no longer allows any type of cookie to be set inside an iframe unless the user previously visited that site. In Safari 5 you could still set a cookie if the user had interacted with the frame, which seems much more sensible if you ask me.


A workaround is to ask the user to click a link that escapes from the frame, sets the cookie, and then closes that window to return back into the frame. It's explained here.

How to set third-party cookies with iframe

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.