php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18929 Session variables do not wait for any plugins to finish execution!
Submitted: 2002-08-15 19:13 UTC Modified: 2002-08-16 06:56 UTC
From: sambukkaa at hotmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.2.2 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 13 = ?
Subscribe to this entry?

 
 [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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-15 19:36 UTC] kalowsky@php.net
You want PHP to wait for a page to finish loading?  Use the require() statement..  But how is this a bug in PHP?
 [2002-08-16 06:45 UTC] sambukkaa at hotmail dot com
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!
 [2002-08-16 06:56 UTC] sander@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 15:01:31 2024 UTC