classe Tokenize (Voir la source)

Méthodes

static bool
makeCsrfToken(int $time = null)

Csrf token creator

static string
make()

GGenerate an encrypted key

static mixed
csrf(int $time = null)

Get a csrf token generate

static bool
csrfExpired(int $time = null)

Check if the token expires

static bool
verify(string $token, bool $strict = false)

Check if csrf token is valid

static void
clear()

Destroy the token

Détails

static bool makeCsrfToken(int $time = null)

Csrf token creator

Paramètres

int $time

Valeur de retour

bool

static string make()

GGenerate an encrypted key

Valeur de retour

string

static mixed csrf(int $time = null)

Get a csrf token generate

Paramètres

int $time

Valeur de retour

mixed

static bool csrfExpired(int $time = null)

Check if the token expires

Paramètres

int $time

Valeur de retour

bool

static bool verify(string $token, bool $strict = false)

Check if csrf token is valid

Paramètres

string $token
bool $strict

Valeur de retour

bool

static void clear()

Destroy the token

Valeur de retour

void