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

Breadcrumb

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

function WriteSafeSessionHandler::gc

File

core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 60

Class

WriteSafeSessionHandler
Wraps the session handler to prevent writes when not necessary or allowed.

Namespace

Drupal\Core\Session

Code

public function gc($max_lifetime) : int|false {
    return $this->wrappedSessionHandler
        ->gc($max_lifetime);
}

API Navigation

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