Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MongoDbSessionHandler.php

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\Handler

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal