File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php, line 91
Class
- MongoDbSessionHandler
- MongoDB session handler
Namespace
Symfony\Component\HttpFoundation\Session\Storage\Handler
Code
public function gc($lifetime) {
$time = new \MongoTimestamp(time() - $lifetime);
$this
->getCollection()
->remove(array(
$this->options['time_field'] => array(
'$lt' => $time,
),
));
}