It appears that you cannot set cookies inside a cross-domain iframe
. How about reading and using them implicitly?
Consider this: domain www.megashop.com
uses an iframed page from the superplugin.it
. Will the JavaScript on the superplugin.it
page be able to do the following:
- Perform an AJAX request to
superplugin.it
and receive cookie from the server? - Keep that cookie (page reloads and the cookie is still there, of course only in an iframe and not on the containing page)?
- Make another AJAX request to
superplugin.it
, sending the cookie along? - Read it into a variable?
- Share the cookie with the
superplugin.it
iframe on another domain, e.g.anothershop.info
?
And, if any of the answers are yes, how does it apply to different browsers, including Internet Explorer from the version 8 and up?