Csrf
class Csrf
Csrf token helpers
Methods
static string|null
getToken(bool $create = false)
Get saved token from session
static bool
validateToken(string $token)
Return true if token is valid
static string
createToken()
Create new token and save to session
Details
at line 25
static string|null
getToken(bool $create = false)
Get saved token from session
at line 37
static bool
validateToken(string $token)
Return true if token is valid
at line 47
static string
createToken()
Create new token and save to session