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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 10:01:32 2024 UTC