Results 1 to 4 of 4

Thread: cookies and iframes and php, oh my

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337

    cookies and iframes and php, oh my

    here is a good one. I have a page called say something.html

    in this page is a iframe calling a php script from a different site.

    like so

    http://www.differentsite.com/php/sho...p&bg=%23FFFFFF

    and in that shop2.php is a setcookie() function



    PHP Code:
    $cookietimeout time()+(3600*24*365);
    if(
    $_GET["partner"]){
        
    $value $_GET["partner"];
        
    setcookie("REFERRALCOOKIE",$value,$cookietimeout); 
    now here is the question. the cookie works for all browsers except IE. can anybody tell me why it doesn't work for IE. I have IE 6 too.

    the cookie just doesn't get set.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    well since this forum seems to be dead now, I mena nobody helps anybody anymore...

    anyway if anybody desides to look into this I found the answer. you need to impliment the p3p privacy protection

    www.w3.org/P3P/

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I looked, I just didn't know the answer Sorry!

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    thanks Rick, at least you tried.

    I forgot to add that IE was not accepting third part cookies since the cooky was coming from a different domain. so adding the p3p it was allowed to accept them when IE's settings were in medium zone.

Posting Permissions

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



Click Here to Expand Forum to Full Width