note 101903 added to function.session-start

From: Date: Mon, 17 Jan 2011 07:59:01 +0000
Subject: note 101903 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-175817@lists.php.net to get a copy of this message
Correction for my previous post: Be aware that when you deliver your flash file through php, you cannot access the session vars that are set from the parent page in Opera, Safari and IE9. I didn't test it with IE6-8. Chrome and Firefox are OK. I don't know the real reason but guessing some of the header data are missing. swf.php: <?php session_start(); //$_SESSION['test'] --> doesn't exist! //session_id() --> != 'hey123' header('Content-type: application/x-shockwave-flash'); readfile('/path/to/flash.swf'); ?> index.php" <?php session_id('hey123'); session_start(); $_SESSION['test'] = 'test'; ?> <object width="550" height="400"> <param name="movie" value="http://example.com/swf/"> </object> * swf directory has an .htaccess file which points to swf.php ---- Server IP: 69.147.83.197 Probable Submitter: 24.130.233.142 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/101903 Del: integrated -- https://master.php.net/note/delete/101903/integrated Del: useless -- https://master.php.net/note/delete/101903/useless Del: bad code -- https://master.php.net/note/delete/101903/bad+code Del: spam -- https://master.php.net/note/delete/101903/spam Del: non-english -- https://master.php.net/note/delete/101903/non-english Del: in docs -- https://master.php.net/note/delete/101903/in+docs Del: other reasons-- https://master.php.net/note/delete/101903 Reject -- https://master.php.net/note/reject/101903 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#175817) next »