SessionCsrf
extends Csrf
in package
implements
CsrfInterface
Extension of Laminas\Validator\Csrf with token counting/clearing functions added.
Tags
Interfaces, Classes, Traits and Enums
- CsrfInterface
- Interface for Csrf validator
Table of Contents
- getTokenCount() : int
- How many tokens are currently stored in the session?
- trimTokenList() : void
- Keep only the most recent N tokens.
Methods
getTokenCount()
How many tokens are currently stored in the session?
public
getTokenCount() : int
Return values
int —trimTokenList()
Keep only the most recent N tokens.
public
trimTokenList(int $limit) : void
Parameters
- $limit : int
-
Number of tokens to keep.