Documentation

CSRF
in package
implements FilterInterface

CSRF filter.

This filter is not intended to be used from the command line.

Tags
codeCoverageIgnore

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

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
Tags
throws
SecurityException
Return values
mixed

Search results