#36794 [NEW]: my function read() not add to $_SSESION (after read from DataBase, no assigned)
| From: | ramires at poczta dot onet dot pl | Date: | Sun, 19 Mar 2006 23:52:01 +0000 |
| Subject: | #36794 [NEW]: my function read() not add to $_SSESION (after read from DataBase, no assigned) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-94584@lists.php.net to get a copy of this message | ||
From: ramires at poczta dot onet dot pl
Operating system: WINX XP PRO SP2
PHP version: 5.1.2
PHP Bug Type: Session related
Bug description: my function read() not add to $_SSESION (after read from DataBase, no assigned)
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 bug report at http://bugs.php.net/?id=36794&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36794&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36794&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36794&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36794&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36794&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36794&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36794&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36794&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36794&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36794&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36794&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36794&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36794&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36794&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36794&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36794&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36794&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36794&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36794&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36794&r=mysqlcfg