Skip to content

Latest commit

 

History

History
69 lines (24 loc) · 1.41 KB

File metadata and controls

69 lines (24 loc) · 1.41 KB

Back to the Ling/CSRFTools api
Back to the Ling\CSRFTools\CSRFProtector class

CSRFProtector::isValid

CSRFProtector::isValid — Returns whether the given $tokenName exists and has the given $tokenValue.

Description

public CSRFProtector::isValid(string $tokenName, string $tokenValue, ?bool $useNewSlot = false) : bool

Returns whether the given $tokenName exists and has the given $tokenValue.

Parameters

  • tokenName

  • tokenValue

  • useNewSlot

Return values

Returns bool.

Source Code

See the source code for method CSRFProtector::isValid

See Also

The CSRFProtector class.

Previous method: hasToken
Next method: deleteToken