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

Breadcrumb

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

function MigratingSessionHandler::gc

File

vendor/symfony/http-foundation/Session/Storage/Handler/MigratingSessionHandler.php, line 57

Class

MigratingSessionHandler
Migrating session handler for migrating from one handler to another. It reads from the current handler and writes both the current and new ones.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function gc(int $maxlifetime) : int|false {
    $result = $this->currentHandler
        ->gc($maxlifetime);
    $this->writeOnlyHandler
        ->gc($maxlifetime);
    return $result;
}

API Navigation

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