Back to the Ling/CSRFTools api
Back to the Ling\CSRFTools\CSRFProtector class
CSRFProtector::isValid — Returns whether the given $tokenName exists and has the given $tokenValue.
public CSRFProtector::isValid(string $tokenName, string $tokenValue, ?bool $useNewSlot = false) : bool
Returns whether the given $tokenName exists and has the given $tokenValue.
-
tokenName
-
tokenValue
-
useNewSlot
Returns bool.
See the source code for method CSRFProtector::isValid
The CSRFProtector class.
Previous method: hasToken
Next method: deleteToken