Skip to content

Kirby 6.0.0

$csrf->clear()

Removes the token from the session; a new token is generated on next use

$csrf->clear(Session $session): void

Parameters

Name Type Default
$sessionrequired Kirby\Session\Session no default value

Parent class

Kirby\Auth\Csrf