#20170 [Bgs]: PHP session don't save variables data on Windows.

From: Date: Thu, 31 Oct 2002 01:00:35 +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-23752@lists.php.net to get a copy of this message
ID: 20170 Updated by: sniper@php.net Reported By: j2000000@yahoo.com Status: Bogus Bug Type: Session related Operating System: Windows XP PHP Version: 4.3.0-pre2 New Comment: 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. " Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#23752) next »