You are here

protected function SessionConfiguration::drupalValidTestUa in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Session/SessionConfiguration.php \Drupal\Core\Session\SessionConfiguration::drupalValidTestUa()
  2. 9 core/lib/Drupal/Core/Session/SessionConfiguration.php \Drupal\Core\Session\SessionConfiguration::drupalValidTestUa()

Wraps drupal_valid_test_ua().

Return value

string|false Either the simpletest prefix (the string "simpletest" followed by any number of digits) or FALSE if the user agent does not contain a valid HMAC and timestamp.

File

core/lib/Drupal/Core/Session/SessionConfiguration.php, line 152

Class

SessionConfiguration
Defines the default session configuration generator.

Namespace

Drupal\Core\Session

Code

protected function drupalValidTestUa() {
  return drupal_valid_test_ua();
}