Constructor get the current user IP and store it in the session as ‘valid data’
isValid() - this method will determine if the current user IP matches the IP we stored when we initialized this variable.
Return type: | bool |
---|
Changes proxy handling setting.
This must be static method, since validators are recovered automatically at session read, so this is the only way to switch setting.
Parameters: | bool – Whether to check also proxied IP addresses. |
---|---|
Return type: | void |
Checks proxy handling setting.
Return type: | bool Current setting value. |
---|
Set list of trusted proxy addresses
Parameters: | array – |
---|---|
Return type: | void |