File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php, line 123
Class
- MongoDbSessionHandler
- MongoDB session handler
Namespace
Symfony\Component\HttpFoundation\Session\Storage\Handler
Code
public function read($sessionId) {
$dbData = $this
->getCollection()
->findOne(array(
$this->options['id_field'] => $sessionId,
));
return null === $dbData ? '' : $dbData[$this->options['data_field']]->bin;
}