Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2004
    Posts
    64
    Thanks
    2
    Thanked 0 Times in 0 Posts

    sessions not persisting inside an iframe

    I have a site where a user can type a URL into a textbox and click submit, and that URL loads in an iframe.

    My problem is that if the site that loads in the iframe uses sessions, and the user wants to log in, they are constantly logged out again (it seems the sessions aren't 'sticking').

    Is this something I can fix, or is it normal browser behavior? Is there any workaround so users can stay logged in to the site they have chosen to load inside my iframe?

  • #2
    New Coder
    Join Date
    Oct 2004
    Posts
    64
    Thanks
    2
    Thanked 0 Times in 0 Posts

    i noticed...

    The site mentioned above works perfectly in Netscape 7.2. Apparently this is just an IE problem. Is there a solution? 100% of my users use IE (internal site with controlled environments), so it working in Netscape is of no use to me.

  • #3
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you could try passing the session ID..
    I googled to see if anyone else had been experiencing a similar problem:
    http://www.sitepoint.com/forums/showthread.php?t=154678

  • #4
    New Coder
    Join Date
    Oct 2004
    Posts
    64
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Problem Solved for now

    I couldn't pass the session variable, because the site inside the iframe could be any site on the net (the src is entered by the user into a form). I have no control over what happens inside that iframe. Thanks for the suggestion though.

    I did however discover that the problem lies in the security settings for IE6. There is another thread on that here already.
    PHP sessions not working with IE6

    Since I don't have access to the sites inside the iframe to add the line of code as specified in this other thread, instead I changed my security settings to allow third party cookies. Now we just have to change the settings for each of our users. And that is someone else's job.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •