• I’m running my wordpress through an iframe that is located on another server and when i try to login it does not actaully take it.. it just refreshes the page basically. it works in firefox but not IE.

    there must be something i can change to get this to work. Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    You can’t do that. The cookies won’t be set properly.

    Don’t run WordPress in an iframe. Better yet, don’t ever use iframes.

    Thread Starter nitrous

    (@nitrous)

    i have to for a client that wants to have wordpress because it runs in php and mysql and the regular site is sitting ontop of a custom asp CMS. So i have it iframing to a different server so that it can support php and mysql.

    I know that the cookies are not working but there must be a way to get it to work. or a way to setup something to get it to work or trick the user to thinking it works by hiding the address of the domain.

    Who needs to login? Just the blog writers, or the customers too?

    If it’s just the admin people, tell them they need to Login on the fullscreen login page. You know, example.com/wordpress/wp-login.php

    Then they should be able to go into “their site” and use the iFramed version, right?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    but there must be a way to get it to work

    Why “must” there be a way to do it? Not everything can be done, you know.

    The short of it is that there is no way to do it. Most browsers don’t let the contents of iframes set cookies. You’re basically screwed with that approach.

    You can get it working by reducing the security settings of your browser to allow third party cookies (in IE, set the settings lower than “Medium” security), but that’s a poor way to do it since your clients will all have to do the same thing.

    Thread Starter nitrous

    (@nitrous)

    it is not just the admin.. what about new users signing up on the form.. if it wont remember any cookies they will never be able to login.

    I have already gotten around it by changing the browser settings but that is not really a feasible option.

    what about having a JS shadowbox/lightbox popup that is really a link to a page that is on the other server (so it hides the address) and then on that page it has a simple login/signup functionality as well and then on logging in or signing up it then takes you back to the regular page with the iframe

    lightbox example to explain:
    https://www.herdboy.com/index.php?option=com_content&view=article&id=107&Itemid=151#inline-sample

    now that is an option but i dont know how to create a page with a simple login/signup functionality..

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Doesn’t matter how you do it, you still need to set third party cookies, which is disallowed by the security settings.

    Note that this is an IE6 and up thing only. Other browsers may work.

    You might get it working by implementing P3P on the WordPress site, but I’ve never tried it:
    https://www.google.com/search?q=IE+third+party+cookies+P3P

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Running WordPress in an Iframe cross domains’ is closed to new replies.