Overview
Class to detect cross-site request forgery attempts.
Configuration Keys
None.
Constants
None.
Public Properties
The Solar_Csrf class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Csrf class.
You can also view the list of all public, protected, and private methods.
-
__construct() -
Constructor.
-
__destruct() -
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
-
dump() -
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
-
getCurrent() -
Returns the expected incoming value for the token.
-
getKey() -
Returns the name of the token key in $_POST values.
-
getToken() -
Gets the token value to be used in outgoing forms.
-
hasToken() -
Is there a token value in the session already?
-
isForgery() -
Does the incoming request look like a cross-site forgery?
-
locale() -
Looks up class-specific locale strings based on a key.
-
setToken() -
Sets the token value to be used in outgoing forms.