19declare(strict_types=1);
77 $token = bin2hex(random_bytes(32));
78 }
catch (Throwable $t) {
79 $token = md5(uniqid((
string) time(),
true));
Class ilCtrlTokenRepository.
fetchToken()
Returns the currently stored token from the session.
storeToken(ilCtrlTokenInterface $token)
Stores the given token in the curren session.
generateToken()
Returns a cryptographically secure token.
Class ilCtrlToken is responsible for generating and storing unique CSRF tokens.
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.
const PARAM_CSRF_TOKEN
$_GET request parameter names, used throughout ilCtrl.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...