Documentation

Security extends BaseConfig
in package

Table of Contents

Properties

$cookieName  : string
-------------------------------------------------------------------------- CSRF Cookie Name --------------------------------------------------------------------------
$csrfProtection  : string
-------------------------------------------------------------------------- CSRF Protection Method --------------------------------------------------------------------------
$expires  : int
-------------------------------------------------------------------------- CSRF Expires --------------------------------------------------------------------------
$headerName  : string
-------------------------------------------------------------------------- CSRF Header Name --------------------------------------------------------------------------
$redirect  : bool
-------------------------------------------------------------------------- CSRF Redirect --------------------------------------------------------------------------
$regenerate  : bool
-------------------------------------------------------------------------- CSRF Regenerate --------------------------------------------------------------------------
$tokenName  : string
-------------------------------------------------------------------------- CSRF Token Name --------------------------------------------------------------------------
$tokenRandomize  : bool
-------------------------------------------------------------------------- CSRF Token Randomization --------------------------------------------------------------------------

Properties

$cookieName

-------------------------------------------------------------------------- CSRF Cookie Name --------------------------------------------------------------------------

public string $cookieName = 'csrf_cookie_name'

Cookie name for Cross Site Request Forgery protection.

$csrfProtection

-------------------------------------------------------------------------- CSRF Protection Method --------------------------------------------------------------------------

public string $csrfProtection = 'cookie'

Protection Method for Cross Site Request Forgery protection.

'cookie' or 'session'

$expires

-------------------------------------------------------------------------- CSRF Expires --------------------------------------------------------------------------

public int $expires = 7200

Expiration time for Cross Site Request Forgery protection cookie.

Defaults to two hours (in seconds).

$headerName

-------------------------------------------------------------------------- CSRF Header Name --------------------------------------------------------------------------

public string $headerName = 'X-CSRF-TOKEN'

Header name for Cross Site Request Forgery protection.

$regenerate

-------------------------------------------------------------------------- CSRF Regenerate --------------------------------------------------------------------------

public bool $regenerate = true

Regenerate CSRF Token on every submission.

$tokenName

-------------------------------------------------------------------------- CSRF Token Name --------------------------------------------------------------------------

public string $tokenName = 'csrf_test_name'

Token name for Cross Site Request Forgery protection.

$tokenRandomize

-------------------------------------------------------------------------- CSRF Token Randomization --------------------------------------------------------------------------

public bool $tokenRandomize = false

Randomize the CSRF Token for added security.


        
On this page

Search results