Safari and php sessions not working in facebook iframe

前端 未结 3 1289
情深已故
情深已故 2021-02-04 17:04

I\'m having a problem to make my facebook app working on Safari.

The issue is related to the PHP session variables.

I am aware that Safari has a problem dealing

3条回答
  •  暖寄归人
    2021-02-04 17:52

    by far not the nicest solution but you don't need any extra Pages put the Solution on the very first position on your page so you only see some white Flickering.

    top.location = \''.$_GET['safarifix'].'\'';
        exit();
    }
    
    if (!isset($_COOKIE, $_COOKIE['PHPSESSID'])) {
        header('P3P: CP="CAO PSA OUR"');
        echo '';
        exit();
    }
    ?>
    

    send your referring url to the page where you actually do your stuff. nothing additional needed. then reffer back to the page you have been in the first place.

提交回复
热议问题