Skip to content

Kirby 4.4.1

$kirby->csrf()

Checks/returns a CSRF token

$kirby->csrf(?string $check = null): string|bool

Parameters

Name Type Default Description
$check string|null null Pass a token here to compare it to the one in the session

Return type

string|bool

Parent class

Kirby\Cms\App