php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36794 my function read() not add to $_SSESION (after read from DataBase, no assigned)
Submitted: 2006-03-20 00:52 UTC Modified: 2006-03-20 08:16 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ramires at poczta dot onet dot pl Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.1.2 OS: WINX XP PRO SP2
Private report: No CVE-ID: None
 [2006-03-20 00:52 UTC] ramires at poczta dot onet dot pl
Description:
------------
session.save_handler = user

and i use my class for session.

Reproduce code:
---------------
  public function read($sessID) 
  {
    $SQL = "SELECT SessionData FROM A_Sessions WHERE SessionId = '$sessID' AND SessionExpires > ".time()."";
    $res = $this->dbHandle->query($SQL);
    if($row = $res->fetchRow())
    {
      return session_decode($row['session_data']);
    }
    return " ";
  }

Expected result:
----------------
get actually $_SESSION

Actual result:
--------------
get empty $_SESSION

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-20 08:16 UTC] mike@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 10:01:30 2024 UTC