#18929 [NEW]: Session variables do not wait for any plugins to finish execution!
| From: | sambukkaa at hotmail dot com | Date: | Thu, 15 Aug 2002 23:13:10 +0000 |
| Subject: | #18929 [NEW]: Session variables do not wait for any plugins to finish execution! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16953@lists.php.net to get a copy of this message | ||
From: sambukkaa@hotmail.com
Operating system: Windows
PHP version: 4.2.2
PHP Bug Type: Session related
Bug description: Session variables do not wait for any plugins to finish execution!
It is not really a bug but some basic nonsolved situation!
Session variables do not wait for any plug-ins to finish execution!
Example:
<!-- this HTML code starts the Realmedia plugin by calling a URL from
another file and before that, with php we set a session variable to some
value: -->
<?$SESSION['session_val']="1";?>
<OBJECT ID=RAOCX CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
HEIGHT="30" WIDTH="300">
<PARAM NAME="CONTROLS" VALUE="ControlPanel">
<PARAM NAME="AUTOSTART" Value="true">
<PARAM NAME="LOOP" Value="false">
<param name="CONSOLE" value="cons1">
<PARAM NAME="SRC" VALUE="url.php">
<embed height="26" width="300" CONTROLS="ControlPanel "
src="url.php"
type="audio/x-pn-realaudio-plugin" autostart=true LOOP=false
NOJAVA=TRUE>
</embed>
</OBJECT>
here is the content of the url.php:
<?
if(isset($SESSION['session_val'])&&
$SESSION['session_val']=="1")
{
$link ="http://myserver/realmediafilm.rm";
echo $link;
// reset the session
$SESSION['session_val']="";
}
?>
logically it looks like that it will work but it doesn't :((
I have found out that it takes some time for php to load the
URL from the url.php file but the session variable will be set to ""
before realmedia will have a chance to get the URL out of the url.php
file.
It seams to me that php do not wait for plug-ins finishing before
executing the rest of the code.
Well, it is a very important issue for setting security access but
unfortunatelly it doesn't exist.
--
Edit bug report at http://bugs.php.net/?id=18929&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18929&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18929&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18929&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18929&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18929&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18929&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18929&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18929&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18929&r=globals