ID:               20170
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to