Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Csrf
PHP Class Csrf, huge
Inheritance:
extends
Slim\Middleware
Exibir arquivo
Open project: panique/huge
Class Usage Examples
Public Methods
Method
Description
isTokenValid
( ) :
boolean
checks if CSRF token in session is same as in the form submitted
makeToken
( ) :
string
get CSRF token and generate a new one if expired
Method Details
isTokenValid()
public
static
method
checks if CSRF token in session is same as in the form submitted
public
static
isTokenValid
( ) :
boolean
return
boolean
makeToken()
public
static
method
get CSRF token and generate a new one if expired
public
static
makeToken
( ) :
string
return
string