function SessionHandler::updateTimestamp

File

core/lib/Drupal/Core/Session/SessionHandler.php, line 153

Class

SessionHandler
Default session handler.

Namespace

Drupal\Core\Session

Code

public function updateTimestamp(string $sessionId, string $data) : bool {
    // This function is intentionally a no-op. Drupal manages session expiry in
    // the MetadataBag, and the timestamp should not be updated here.
    // @see \Drupal\Core\Session\MetadataBag::__construct()
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.