|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-08-15 19:13 UTC] sambukkaa at hotmail dot com
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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 17:00:02 2025 UTC |
Sure, I know php very good. The problem is that the new page is called through javascript something like this: function Play (id, band, player) { window.open("newpage.php,"toolbar=no,width=800,height=600,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no"); } so there is no way to use require() function!