#42043 [Opn->Bgs]: session_decode does not populate $_SESSION

From: Date: Thu, 19 Jul 2007 07:18:26 +0000
Subject: #42043 [Opn->Bgs]: session_decode does not populate $_SESSION
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115248@lists.php.net to get a copy of this message
 ID:               42043
 User updated by:  raadtblare at hotmail dot com
-Reported By:      rmgraci at yahoo dot com
+Reported By:      raadtblare at hotmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: Vista
 PHP Version:      5.2.3
 New Comment:

This was a mistake on my end.


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

[2007-07-19 07:03:49] raadtblare at hotmail dot com

Description:
------------
session_decode() is returning the correct data, but it is not
populating $_SESSION.  This is contrary to the documentation I found,
which says the opposite should be done.  I like that session_decode()
returns a value, but it should also populate $_SESSION.

Reproduce code:
---------------
$myvar = session_decode($data);
var_dump($myvar);
echo '<br />';
var_dump($_SESSION);

Expected result:
----------------
bool(false)
bool(false)

Actual result:
--------------
bool(false)
array(0) { }


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


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


Thread (2 messages)

« previous php.bugs (#115248) next »