php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18362 session vars NOT registering
Submitted: 2002-07-15 19:04 UTC Modified: 2002-07-23 15:49 UTC
From: triffid at totalise dot co dot uk Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.2.1 OS: Windows 2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: triffid at totalise dot co dot uk
New email:
PHP Version: OS:

 

 [2002-07-15 19:04 UTC] triffid at totalise dot co dot 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 ?)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-15 22:01 UTC] 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-17 17:32 UTC] triffid at totalise dot co dot 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-23 15:49 UTC] hholzgra@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 10:01:28 2024 UTC