W3cubDocs

/Drupal 8

public function MetadataBag::clearCsrfTokenSeed

public MetadataBag::clearCsrfTokenSeed()

Clear the CSRF token seed.

File

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

Class

MetadataBag
Provides a container for application specific session metadata.

Namespace

Drupal\Core\Session

Code

public function clearCsrfTokenSeed() {
  unset($this->meta[static::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::clearCsrfTokenSeed/8.1.x