ID:               14688
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Session related
 Operating System: linux 2.2
 PHP Version:      4.1.0
 New Comment:

Using 4.2.0.RC2 this behavior still there, you can check with these
scripts:
## i2.php
<?php
session_start();
$counter = 1;
session_register("counter");
header("Location: /i.php");
?>

## i.php
<?php
session_start();
$counter = 0;
### uncomment this to see the difference
# session_unregister("counter");
session_register("counter");
unset($counter);
$counter = 4;
session_register("counter");
header("Location: /i1.php");
?>

## i1.php
<?php
session_start();
print $counter;

?>

And then open http://host/i2.php in browser window.

Expected output - 4, but I get 0.


Previous Comments:
------------------------------------------------------------------------

[2002-04-01 15:53:51] [EMAIL PROTECTED]

AFAIK, this is fixed in CVS and PHP 4.2.0RC1.
Please test RC1 from: http://www.php.net/~derick/
and if it doesn't work, latest snapshot from http://snaps.php.net/


------------------------------------------------------------------------

[2002-03-12 13:43:33] [EMAIL PROTECTED]

I notice this too under 4.1.2.  unset($var) doesn't unregister $var
from the session

FWIW, this is with Linux 2.4.6-pre6, and I'm using the default files
for session storage.

- Colin

------------------------------------------------------------------------

[2002-02-02 06:38:08] [EMAIL PROTECTED]

No feedback was provided for this bug, so it is being suspended.
If you are able to provide the information that was requested,
please do so and change the status of the bug back to "Open".

------------------------------------------------------------------------

[2002-01-11 18:31:26] [EMAIL PROTECTED]

Clarification. 
Which save handler are you using files or user?

------------------------------------------------------------------------

[2001-12-25 14:20:57] [EMAIL PROTECTED]

This bug is in 4.1.1 aswell

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/14688

-- 
Edit this bug report at http://bugs.php.net/?id=14688&edit=1

Reply via email to