#24394 [Opn->Fbk]: Session feature unusable.

From: Date: Mon, 30 Jun 2003 01:04:06 +0000
Subject: #24394 [Opn->Fbk]: Session feature unusable.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42767@lists.php.net to get a copy of this message
 ID:               24394
 Updated by:       sniper@php.net
 Reported By:      hos dot endre at axelero dot hu
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: Win NT/XP
 PHP Version:      5CVS-2003-06-29 (dev)
 New Comment:

Does this script work any better:

<?php                                                                  
                              
session_start();                                                       
                       
if (!isset($_SESSION["count"])) {
    $_SESSION['count'] = 1;
} else {
    echo $_SESSION['count']++;
}
?>




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

[2003-06-29 19:37:32] hos dot endre at axelero dot hu

Description:
------------
On request shutdown session file is created, but stay locked with zero
size. CPU have no load, and nothing happens. No crash. I've tried older
5CVS bins, and it seems to be an older bug. Serialization and anything
else works well for me. 5.0.0-Beta1 also contains this bug. Leaving out
session_start & session_register. :)

Reproduce code:
---------------
<?
session_start();
if (!isset($HTTP_SESSION_VARS["count"]))
{
    session_register("count");
    $count = &$HTTP_SESSION_VARS["count"];
    $count = 1;
} else
    $count = &$HTTP_SESSION_VARS["count"];
echo $count++;
?>


Expected result:
----------------
1, 2, 3... by refreshing the page.



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


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



Thread (17 messages)

« previous php.bugs (#42767) next »