#20170 [Bgs]: PHP session don't save variables data on Windows.
| From: | j2000000 at yahoo dot com | Date: | Fri, 01 Nov 2002 23:13:02 +0000 |
| Subject: | #20170 [Bgs]: PHP session don't save variables data on Windows. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23920@lists.php.net to get a copy of this message | ||
ID: 20170
User updated by: j2000000@yahoo.com
Reported By: j2000000@yahoo.com
Status: Bogus
Bug Type: Session related
Operating System: Windows XP
PHP Version: 4.3.0-pre2
New Comment:
You are right. Thanks!
But, I still got no session functionality unless I pass the session id
along GET or POST data to other pages. The cookies are been accepted,
so I don't have a clue of why this is happenning. Any idea?
Best regards,
Josue
Previous Comments:
------------------------------------------------------------------------
[2002-10-30 19:00:35] sniper@php.net
RTFM:
http://www.php.net/manual/en/ref.session.php
"If register_globals is disabled, only members of the global
associative array $_SESSION can be registered as session
variables. The restored session variables will only be
available in the array $_SESSION. "
------------------------------------------------------------------------
[2002-10-30 08:55:06] j2000000@yahoo.com
1. What I did:
---file1.php---
<?php
session_start();
session_register('stack');
$stack[]='word1';
header('Location: file2.php');
?>
---file2.php---
<?php
session_start();
$stack[]='word2';
print_r($stack);
?>
2. What I expected to have happen:
---output---
Array ( [0] => word1 [1] => word2 )
3. What actually have happened:
---output---
Array ( [0] => word2 )
------------------------------------------------------------------------
[2002-10-30 08:08:11] sniper@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.
------------------------------------------------------------------------
[2002-10-30 07:53:41] j2000000@yahoo.com
PHP session don't save variables data on Windows.
This is a bug described long ago and registered in PHP.net forum.
Does anyone knows how to make a PHP 4.2.x ou 4.3.x session work as it
should be.
I am using Windows XP + Apache 1.3.26 + PHP 4.3.0-pre2.
Thanks in advance.
Best regards,
Josue
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20170&edit=1