Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Csrf
PHP Class Csrf, huge
Inheritance:
extends
Slim\Middleware
Show file
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