公開メンバ関数 | |
__construct ($keyName='xh_csrf_token', $perRequest=false) | |
tokenInput () | |
check () | |
store () | |
CSRFProtection.php の 27 行目に定義があります。
XH\CSRFProtection::__construct | ( | $keyName = 'xh_csrf_token' , |
|
$perRequest = false |
|||
) |
Initializes a new object.
string | $keyName | A key name. |
bool | $perRequest | Whether a new token shall be generated for each request (otherwise once per session). |
CSRFProtection.php の 50 行目に定義があります。
XH\CSRFProtection::check | ( | ) |
Checks whether the submitted CSRF token matches the one stored in the session. Responds with "403 Forbidden" if not.
CSRFProtection.php の 85 行目に定義があります。
XH\CSRFProtection::store | ( | ) |
Stores the CSRF token in the session, if a self::tokenInput() was called.
CSRFProtection.php の 104 行目に定義があります。
XH\CSRFProtection::tokenInput | ( | ) |
Returns a hidden input field with the CSRF token for inclusion in an HTML form.
CSRFProtection.php の 69 行目に定義があります。