Skip to content

Kirby 6.0.0

Token::parse()

Parses a token string into a Token object

Token::parse(string $token, bool $key = true): Token

Parameters

Name Type Default Description
$tokenrequired string no default value Session token
$key bool true Whether the token string includes the secret key

Return type

Kirby\Session\Token

Exceptions

Parent class

Kirby\Session\Token