Bug #18362 Updated: session vars NOT registering
| From: | hholzgra@php.net | Date: | Tue, 23 Jul 2002 19:49:17 +0000 |
| Subject: | Bug #18362 Updated: session vars NOT registering | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14939@lists.php.net to get a copy of this message | ||
ID: 18362
Updated by: hholzgra@php.net
Reported By: triffid@totalise.co.uk
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Windows 2000
PHP Version: 4.2.1
New Comment:
not enough information (yes we want your complete php.ini by times, as
stated in the "How to report a bug" page
(http://bugs.php.net/how-to-report.php)
and the information given is not consistent
(apache 1.32.26 in the first comment, guess that should be 3 not 32,
apache 2.0.39 in the second)
Previous Comments:
------------------------------------------------------------------------
[2002-07-17 17:32:30] triffid@totalise.co.uk
Why Bogus ?
Also IE exploer tends to crash a lot while running apache & PHP but not
sure if this is due to PHP or Apache 2.0.39!
Here are my scripts.. script.php 1 then script2.php
both are purely a test, but on my system, does'nt pass the session
var.
Do you REALLY want me to past in to here my httpd.conf and php.ini ?
I will try to send this also directly to your email address
yohgaki@php.net or letme know how to attach these files somewhere..
Here is the scripts (run script 1 first)
Thanks
A. Trayford.
----------------------------------------
script1.php
-----------
<?
session_start();
if (!isset($_SESSION['andyt'])) {
$_SESSION['andyt'] = "Hi Tony";
} else {
$_SESSION['andyt'] = "Hi Andy";
}
echo "<br>"; echo $_SESSION['andyt']; echo "<br>";
?>
<html>
<head>
<title>Session Test script 1</title>
</head>
<body>
If you have just run this, click here to load <A
href="script2.php">script 2</a>, you should see a name passed via
session var's
</body>
</html>
------------------------------------------------
script2.php
-----------
<?
session_start();
// If a session var is available, print it
echo "is there a session var? [";
echo $_SESSION['andyt'];
echo "], we'll soon find out!<br>";
?>
<html>
<head>
<title>Session test script 2</title>
</head>
<body>
If script - test1.php was run first, you should see a name in the
square brackets!
</body>
</html>
---------------------------------------------
------------------------------------------------------------------------
[2002-07-15 22:01:33] yohgaki@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
We need at least
your php.ini settings for session
short&complete script that shows this problem.
------------------------------------------------------------------------
[2002-07-15 19:04:24] triffid@totalise.co.uk
Hi,
I am trying to set up PHP4.2.1 with apache 1.32.26 & MySql 3.23.51, but
am having problems with session vars !
I have however had no problems at all with windows 98..
I have configured php & apache as per instructions & have enabled
register globals, but no matter what I do I cannot seem to get session
variables to be passed to other scripts!(either $_session OR
session_register ) If I use the same configuration files(httpd.conf &
php.ini)on windows 98 all works fine, How crazy is that !
I am using the CGI method with apache.
I also am downloading your latest bug fix version.
I am no way an expert, Am I missing something important ?, If you can
suggest a solution to curing this I would be grateful..
Thanks.. Andy T
P.S. (What is the most recommendable Linux software ?)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18362&edit=1