views:

311

answers:

1

I am attempting to mimic a pretty simple feature of Facebook. When you click on a link someone has shared, you're taken to a page that has a Facebook toolbar at the top and the actual page loaded below it within an iframe. The url I'm using has parameters that are being passed, so it ends up being:

<iframe src="https://example.com/login.php?uname=uname&amp;pw=pw&amp;key=1234"&gt;&lt;/iframe&gt;

If I access the url directly (within the address bar), it works, but if I do so within the iframe, it does not (I'm taken to the site's home page). Firefox, Opera and Chrome function properly, but IE does not and surprisingly, neither does Safari. Now, if I access the url directly and then try the iframe method, IE and Safari behave as expected, but this is not an ideal solution.

Any ideas? I've tried setting src using JS, but had no luck.

+1  A: 

This sounds like a problem with IE IFrame rejecting cookies due to the privacy being lowered. If that's the case, this is a duplicate of this post and you should be able to use the solution found there.

Timothy Strimple