note 50905 added to function.session-start

From: Date: Sun, 13 Mar 2005 20:29:45 +0000
Subject: note 50905 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-86371@lists.php.net to get a copy of this message
workaround when using session variables in a .php file referred by a frame (.html, or other file type) at a different server than the one serving the .php: Under these conditions IE6 or later silently refuses the session cookie that is attempted to create (either implicitly or explicitly by invoquing session_start()). As a consequence, your session variable will return an empty value. According to MS kb, the workaround is to add a header that says your remote .php page will not abuse from the fact that permission has been granted. Place this header on the .php file that will create/update the session variables you want: <?php header('P3P: CP="CAO PSA OUR"'); ?> Regards, Hugo ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50905 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50905&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50905&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50905&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50905&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50905&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50905&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86371) next »