/** * getSessionRef * * @param string $ref * @return array of session containing a specific reference */ public function getSessionRef($ref) { $refs = array(); $db_refs = $this->DB->PGetall('SELECT sid, ref, expiry FROM dalmp_sessions WHERE ref=?', $ref); if ($db_refs) { foreach ($db_refs as $value) { $refs[$value['sid']] = array($value['ref'] => $value['expiry']); } } return $refs; }