iframe cookie issue.

Discussion in 'PHP' started by leouser, Nov 19, 2007.

  1. #1
    Here is the scenario:
    1. Clear your IE cash and cookies.
    2. Go to tutorial-index.com
    3. You will see that the site recorded you a tutorial-index cookie.
    4. Clear the cookies and cash again.
    5. Create HTM file and put the following code in it:
    <html xmlns='http://www.w3.org/1999/xhtml' >
    <head><title></title></head>
    <body><iframe src="http://www.tutorial-index.com" height="1000" width="1000"></iframe></body>
    </html>
    6. Run just created file.
    7. Now check your cookie folder. RESULT: no cookie.

    I've been fighting with this iFrame vs. cookie issue for over 2 days. I cannot pinpoint the problem. Anyone can explain to me why it's happening and how I can fix the issue?
     
    leouser, Nov 19, 2007 IP
  2. redlorry919

    redlorry919 Peon

    Messages:
    384
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it's a DOCTYPE problem within the iframe - I briefly remember this happening to me a while back. Try this DOCTYPE:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    redlorry919, Nov 20, 2007 IP