You are here

protected function MongodbSessionHandler::cleanupObsoleteSessions in MongoDB 8

Remove sessions marked for garbage collection.

1 call to MongodbSessionHandler::cleanupObsoleteSessions()
MongodbSessionHandler::write in mongodb_user/src/MongodbSessionHandler.php

File

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

Class

MongodbSessionHandler

Namespace

Drupal\mongodb_user

Code

protected function cleanupObsoleteSessions() {
  array_walk($this->obsoleteSessionIds, [
    $this,
    'removeSession',
  ]);
}