ID: 15999
Updated by: php-bugs@lists.php.net
Reported By: didier.alain@laposte.net
-Status: Feedback
+Status: No Feedback
Bug Type: Session related
Operating System: Linux
PHP Version: 4.1.0, 4.0.6
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-07-11 00:40:20] sniper@php.net
Your scripts will never work since the session data
will be available AFTER the script is run.
What are you trying to achieve? Can't you just use include()
as the files are on same machine???
------------------------------------------------------------------------
[2002-06-01 11:56:54] didier.alain@laposte.net
$doc="http://myserver/docs/mydoc.html?PHPSESSID=".session_id();
It was a type mismatch, of course, sorry.
------------------------------------------------------------------------
[2002-06-01 11:51:18] didier.alain@laposte.net
Sorry for the long time...
Here's a complete but simple example :
-------------
In httpd.conf
-------------
<Directory "/var/www/docs/">
php_value auto_prepend_file "block.php"
</Directory>
(block.php is in my php.ini include_path, and /var/www is my Apache
DocumentRoot)
------------
open_doc.php (<--I call this one with my browser)
------------
<?php
session_register("s_util");
$s_util = toto";
session_start();
echo "Session Id :".session_id(); //just to be sure...
$doc =
"http://http://myserver/docs/mydoc.html?PHPSESSID=".session_id();
readfile($doc); //same with $fp=fopen($doc, "r");
?>
---------
block.php
---------
<?php
session_start();
echo "Session Id :".session_id(); //just to be sure...
if (session_is_registered("s_util"))
{
echo "Right, man !";
}
else
{
echo "No auth!";
}
?>
I can't see any infinite loop here, but I may be wrong... Whenever you
don't pass the session param in the url anymore, there's "no problem"
anymore, except you can't retrieve session values !
------------------------------------------------------------------------
[2002-03-19 05:03:47] yohgaki@php.net
What is the name of the script you have pasted?
What is the content of block.html?
It seems you are not calling the same script, but
if block.html is calling the script pasted, it's
the same.
------------------------------------------------------------------------
[2002-03-11 13:28:19] sniper@php.net
Ok..let's reopen this. I have no idea what you're doing
but if you're not doing what I thought you were, it might
be a bug..although that auto_prepend thing makes me wonder..
Please add some example scripts and what needs to be set
in php.ini / httpd.conf to reproduce this.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15999--
Edit this bug report at http://bugs.php.net/?id=15999&edit=1