function MongoDbSessionHandler::doDestroy
Overrides AbstractSessionHandler::doDestroy
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ Handler/ MongoDbSessionHandler.php, line 94
Class
- MongoDbSessionHandler
- Session handler using the MongoDB driver extension.
Namespace
Symfony\Component\HttpFoundation\Session\Storage\HandlerCode
protected function doDestroy(string $sessionId) : bool {
$write = new BulkWrite();
$write->delete([
$this->options['id_field'] => $sessionId,
], [
'limit' => 1,
]);
$this->manager
->executeBulkWrite($this->namespace, $write);
return true;
}