Can't login in an iframe with IE 6.0 (6 posts)

  1. mervan
    Posted 9 years ago #

    I have a problem with login in on the blog page.
    I have the blog page linked to an iframe and am able to login as usual with Firefox but not with IE it just won't let me login. But while out externally of the iframe and just on a regular page it shows i am logged in and everything is fine. I just want it to work in the iframe.

    please help

    here is the page i am talking about.

    The whole page is on one server and the blog page is on another server if that makes any sense.

    http://mervan.se/7/ --- click on the Current News link!

    I made an account so you can see that it doesn't work:
    login: test
    password: 123456

  2. moshu
    Posted 9 years ago #

    I just want it to work in the iframe.

    Never tried, but based on similar posts in the last several months, it seems the login never works in iframe/IE combination.

  3. mervan
    Posted 9 years ago #

    Ok that is a pain...

    Ok but it I want to have the login link open in a new window instead?
    How do i do that in php?


    <li id="meta"><?php _e('Admin:'); ?>

      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>


  4. mervan
    Posted 9 years ago #

    i seemed to have fixed this on my own. Don't know what i really did tho...

  5. Source
    Posted 9 years ago #

    The problem is a login requires placement of a cookie in your browser's cache. If you open IE and open the page that contains the login box (i.e. the Blog), you will see an icon of an eye on the lower toolbar of the browser window. This is a privacy report notification. Click on this icon to launch the cookies settings. Click on the web address of the server that contains the login page (i.e. the server hosting your Blog) and set to 'always allow cookies on this site'. Now return to the page containing the login to your Blog in an iFrame, you should be able to login.

  6. rob215
    Posted 9 years ago #

    I have the solution to this problem. To use cookies (or sessions) with an iframe and IE, you need a compact P3P policy header. The solution and explanation can be found here: http://www.aspnetresources.com/blog/frames_webforms_and_rejected_cookies.aspx

    Make sure to read the entire article and my comment (Robert Giordano) at the end. There were a couple of things that were not obvious to me but in the end, it all works!

Topic Closed

This topic has been closed to new replies.

About this Topic