public function MetadataBag::setCsrfTokenSeed

public MetadataBag::setCsrfTokenSeed($csrf_token_seed)

Set the CSRF token seed.

Parameters

string $csrf_token_seed: The per-session CSRF token seed.

File

core/lib/Drupal/Core/Session/MetadataBag.php, line 35

Class

MetadataBag
Provides a container for application specific session metadata.

Namespace

Drupal\Core\Session

Code

public function setCsrfTokenSeed($csrf_token_seed) {
  $this->meta[static::CSRF_TOKEN_SEED] = $csrf_token_seed;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!MetadataBag.php/function/MetadataBag::setCsrfTokenSeed/8.1.x