Docs

AntiForgery


Definition

Namespace: DafCore
Phar: DafCore.phar

Constructor

new AntiForgery(Session $session, Request $request)
  • Session $session - class for handle current sessions.
  • Request $request - class for handle current Request.

Methods

function RegisterToken() : void
Register AntiForgery token to the current session.
function GetToken() : string
Get the AntiForgery token from the current session.
function ValidateToken() : bool
Validate the AntiForgery token of the current session with the request token.