CSRF
in package
implements
FilterInterface
CSRF filter.
This filter is not intended to be used from the command line.
Tags
Interfaces, Classes and Traits
- FilterInterface
- Filter interface
Table of Contents
- after() : mixed
- We don't have anything to do here.
- before() : mixed
- Do whatever processing this filter needs to do.
Methods
after()
We don't have anything to do here.
public
after(RequestInterface|IncomingRequest $request, ResponseInterface|Response $response[, array<string|int, mixed>|null $arguments = null ]) : mixed
Parameters
- $request : RequestInterface|IncomingRequest
- $response : ResponseInterface|Response
- $arguments : array<string|int, mixed>|null = null
Return values
mixed —before()
Do whatever processing this filter needs to do.
public
before(RequestInterface|IncomingRequest $request[, array<string|int, mixed>|null $arguments = null ]) : mixed
By default it should not return anything during normal execution. However, when an abnormal state is found, it should return an instance of CodeIgniter\HTTP\Response. If it does, script execution will end and that Response will be sent back to the client, allowing for error pages, redirects, etc.
Parameters
- $request : RequestInterface|IncomingRequest
- $arguments : array<string|int, mixed>|null = null