#36794 [Opn->Bgs]: my function read() not add to $_SSESION (after read from DataBase, no assigned)
| From: | mike@php.net | Date: | Mon, 20 Mar 2006 07:16:39 +0000 |
| Subject: | #36794 [Opn->Bgs]: my function read() not add to $_SSESION (after read from DataBase, no assigned) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94622@lists.php.net to get a copy of this message | ||
ID: 36794
Updated by: mike@php.net
Reported By: ramires at poczta dot onet dot pl
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: WINX XP PRO SP2
PHP Version: 5.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-03-20 00:52:00] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36794&edit=1