You are here

protected function MongodbSessionHandler::removeSession in MongoDB 8

Remove a session from the database.

1 call to MongodbSessionHandler::removeSession()
MongodbSessionHandler::destroy in mongodb_user/src/MongodbSessionHandler.php

File

mongodb_user/src/MongodbSessionHandler.php, line 169
Contains \Drupal\mongodb_user\MongodbSessionHandler.

Class

MongodbSessionHandler

Namespace

Drupal\mongodb_user

Code

protected function removeSession($sid) {
  $this
    ->mongoCollection()
    ->remove([
    'sid' => Crypt::hashBase64($sid),
  ]);
}