php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42043 session_decode does not populate $_SESSION
Submitted: 2007-07-19 07:03 UTC Modified: 2007-07-19 07:18 UTC
From: raadtblare at hotmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.3 OS: Vista
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: raadtblare at hotmail dot com
New email:
PHP Version: OS:

 

 [2007-07-19 07:03 UTC] 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) { }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-19 07:18 UTC] raadtblare at hotmail dot com
This was a mistake on my end.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 10:00:01 2025 UTC